# \[FMX\] Embed fonts for ComboBox

**URL:** <https://forum.kirupa.com/t/fmx-embed-fonts-for-combobox/65152>\
**Category:** flash\
**Created:** [September 23, 2004, 1:16pm UTC](https://forum.kirupa.com/t/fmx-embed-fonts-for-combobox/65152 "2004-09-23T13:16:23Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dboers](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@dboers](https://forum.kirupa.com/u/dboers)\
**Post date:** [September 23, 2004, 1:16pm UTC](https://forum.kirupa.com/t/fmx-embed-fonts-for-combobox/65152/1 "2004-09-23T13:16:23Z")

</div>

How do I Embed fonts for a ComboBox?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 24, 2004, 7:00am UTC](https://forum.kirupa.com/t/fmx-embed-fonts-for-combobox/65152/2 "2004-09-24T07:00:38Z")

</div>

I found out that I had to do it with the bolean Style.embedFonts = true;

But after I added, that to my code the comboboxes became very small in height? and the content disapear

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 24, 2004, 7:38am UTC](https://forum.kirupa.com/t/fmx-embed-fonts-for-combobox/65152/3 "2004-09-24T07:38:46Z")

</div>

[font=Arial]

> [@dboers](#):
>
> I found out that I had to do it with the bolean Style.embedFonts = true;[/font]  
> [font=Arial] [/font]  
> [font=Arial]But after I added, that to my code the comboboxes became very small in height? and the content disapear

[/font]  
[font=Arial][/font]  
[font=Arial]embedFonts will embed only the fonts that are declared in fontFamily.[/font]  
[font=Arial][/font]  
[font=Arial]like:[/font]  
[font=Arial]\_global.style.setStyle(“embedFonts”, true);  
\_global.style.setStyle(“fontFamily”, “verdana”);[/font]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 24, 2004, 8:00am UTC](https://forum.kirupa.com/t/fmx-embed-fonts-for-combobox/65152/4 "2004-09-24T08:00:53Z")

</div>

Hi Pietertje,

Thanks for your reply. How does that work with Pixelfonts? I have FFF Business that I want to use.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 24, 2004, 8:09am UTC](https://forum.kirupa.com/t/fmx-embed-fonts-for-combobox/65152/5 "2004-09-24T08:09:41Z")

</div>

don’t know sure, but if you add a new font (the FFF B…) to your library  
and then just add the code(or change it only for the combobox):  
\_global.style.setStyle(“embedFonts”, true);  
\_global.style.setStyle(“fontFamily”, “FFF Business”);

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 24, 2004, 8:27am UTC](https://forum.kirupa.com/t/fmx-embed-fonts-for-combobox/65152/6 "2004-09-24T08:27:01Z")

</div>

Do you mean that when I have a font in the library with let’s say the name comboFont the code should look like:  
[color=red]\_global.style.setStyle(“fontFamily”, “comboFont”);[/color]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 24, 2004, 8:41am UTC](https://forum.kirupa.com/t/fmx-embed-fonts-for-combobox/65152/7 "2004-09-24T08:41:45Z")

</div>

I don’t think I’ve ever seen setStyle before :-/ And I couldn’t find it in the AS dictionary either. Maybe you meant setStyleFormat? [http://www.macromedia.com/support/flash/action\_scripts/actionscript\_dictionary/actionscript\_dictionary238.html](http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary238.html) (apparently there’s a chapter concerning Components color and font somewhere :))

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 24, 2004, 10:47am UTC](https://forum.kirupa.com/t/fmx-embed-fonts-for-combobox/65152/8 "2004-09-24T10:47:19Z")

</div>

I tried the globalStyleFormat as you suggested Ilyas, but without result.I also had a look add the Macromedia site but counln’t find anything back about globalStyleFormat in relation to embedFonts. Any other sugestions?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 24, 2004, 1:50pm UTC](https://forum.kirupa.com/t/fmx-embed-fonts-for-combobox/65152/9 "2004-09-24T13:50:36Z")

</div>

just like this i think:

\_global.styles.ComboBox.setStyle(“embedFonts”,true);  
\_global.styles.ComboBox.setStyle(“fontFamily”,“FFF Business”);

and check: [http://livedocs.macromedia.com/flash/mx2004/main\_7\_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash\_MX\_2004&file=00002145.html](http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00002145.html)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 29, 2004, 6:06pm UTC](https://forum.kirupa.com/t/fmx-embed-fonts-for-combobox/65152/10 "2004-09-29T18:06:19Z")

</div>

Ever got this one figured out??

Got the same problem just for a TextArea, would assume the method inr esolving this is the same, so please if you figured it out, share 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 30, 2004, 7:15am UTC](https://forum.kirupa.com/t/fmx-embed-fonts-for-combobox/65152/11 "2004-09-30T07:15:46Z")

</div>

Hi,

I presume that you have MX and there is a simple way to embed the font into the comboBox in Flash MX:  
[font=Verdana][size=2][color=black][color=black][font=Verdana][/font][/color][/color][/size][/font]  
[list]  
[_][font=Verdana][size=2][color=black][font=Verdana]Open the library and locate Flash UI Components/Component Skins/FLabel.[/font][/color][/size][/font] [font=Verdana][size=2][color=black][font=Verdana]Edit this label and embed the font [/font][/color][/size][/font]  
[_][font=Verdana][size=2][color=black][font=Verdana]While still in editing mode, click on the “transform panel” and reset the size of this textfield to be 100%x100%.[/font][/color][/size][/font]  
[\*][font=Verdana][size=2][color=black][font=Verdana]Ensure that you position the comboBox on the whole pixel.[/font][/color][/size][/font]  
[/list][color=black]goodluck[/color]
