# \[CS3|AS2\]Desperately Trying to Embed Fonts Into My ComboBox

**URL:** https://forum.kirupa.com/t/cs3-as2-desperately-trying-to-embed-fonts-into-my-combobox/239081
**Category:** flash
**Created:** [September 18, 2007, 4:16pm UTC](https://forum.kirupa.com/t/cs3-as2-desperately-trying-to-embed-fonts-into-my-combobox/239081 "2007-09-18T16:16:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![audiohominis](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@audiohominis](https://forum.kirupa.com/u/audiohominis)
#### Post date: [September 18, 2007, 4:16pm UTC](https://forum.kirupa.com/t/cs3-as2-desperately-trying-to-embed-fonts-into-my-combobox/239081/1 "2007-09-18T16:16:36Z")

</div>

Hi.

After adding a new font to the library, exporting it for ActionScript, and assigning it to a combo box thisly:

```php
myComboInstance.setStyle("fontFamily", "FFF Dreamer");

```

- I tried the following methods to embed it, which haven’t worked:

```php
myComboInstance.setStyle("embedFonts", "true"); //-no worky

_global.styles.ComboBox.setStyle("embedFonts","true"); //-no worky

this.myComboInstance.embedFonts=true; //-no worky

```

The only thing that I’ve managed so far is embedding the selected item font, but NOT the drop-down list font by doing the following:

```php
stateCombo.textField.setStyle("embedFonts", "true"); 

```

Now, how do I make it so that the font is embedded fully into the combo box?  
I went on to also try the following, but with no luck.

```php
myComboInstance.setStyle("embedFonts", "true"); //-no worky

myComboInstance.dropdown.setStyle("embedFonts", "true"); //-no worky

```

If someone could enlighten me on this and put a stop to my syntax guesswork that’d be awesome.

Thank you.
