# embedFonts - can't make it happen

**URL:** https://forum.kirupa.com/t/embedfonts-cant-make-it-happen/229734
**Category:** flash
**Created:** [June 19, 2007, 8:07pm UTC](https://forum.kirupa.com/t/embedfonts-cant-make-it-happen/229734 "2007-06-19T20:07:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![philj1986](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/philj1986/32/3660_2.png) [@philj1986](https://forum.kirupa.com/u/philj1986)
#### Post date: [June 19, 2007, 8:07pm UTC](https://forum.kirupa.com/t/embedfonts-cant-make-it-happen/229734/1 "2007-06-19T20:07:11Z")

</div>

Hey,  
I’ve been working on this all day - I am trying to embed a font into a text field and can’t seem to find ANY documentation for AS3 on it…big suprise…

anyway

so far I have added the font to my library, set the linkage for actionscript, gave my textField the instance name “my\_txt” and added this code to the timeline:

var font\_Style:TextFormat = new TextFormat();  
font\_Style.font = “Font1”;  
my\_txt.embedFonts = true;  
my\_txt.htmlText = “some testing text”;  
my\_txt.setTextFormat(font\_Style);

This doesn’t work. But it’s all I know how to do.

(when I erase the 3rd line “my\_txt.embedFonts = true” it will display the text but not with the text embedded).

Has anyone got this working for AS3 yet?

Thanks for any help at all.
