The embedFonts property of a dynamic textfield only means that it should be rendered using an embedded font. It doesn't embed the font.
To embed a font, you need to create a dynamic textbox using the gui and embed the characters you need. The textbox can be placed off stage if you want to use the font in another textbox that is created using actionscript.
Make sure you are using the same font for the actionscript created textbox as the one you embed in the swf file.
The embedFonts property of a dynamic textfield only means that it should be rendered using an embedded font. It doesn't embed the font.
To embed a font, you need to create a dynamic textbox using the gui and embed the characters you need. The textbox can be placed off stage if you want to use the font in another textbox that is created using actionscript.
Make sure you are using the same font for the actionscript created textbox as the one you embed in the swf file.
I didn't get it to work... even if i used the same font... could you perhaps give me a sample file?
With AS3 and KM7, is this still the only way to embed fonts in fields created on the fly? I've implemented it and it works, but I'd rather not have extraneous fields.
Originally Posted by w.brants
The embedFonts property of a dynamic textfield only means that it should be rendered using an embedded font. It doesn't embed the font.
To embed a font, you need to create a dynamic textbox using the gui and embed the characters you need. The textbox can be placed off stage if you want to use the font in another textbox that is created using actionscript.
Make sure you are using the same font for the actionscript created textbox as the one you embed in the swf file.