# Problem embedding fonts

**URL:** <https://forum.kirupa.com/t/problem-embedding-fonts/322964>\
**Category:** Uncategorized\
**Created:** [June 10, 2011, 3:15pm UTC](https://forum.kirupa.com/t/problem-embedding-fonts/322964 "2011-06-10T15:15:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![achim](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@achim](https://forum.kirupa.com/u/achim)\
**Post date:** [June 10, 2011, 3:15pm UTC](https://forum.kirupa.com/t/problem-embedding-fonts/322964/1 "2011-06-10T15:15:36Z")

</div>

Hi,  
I’ve seen it seems to be a recurring problem to embed fonts, but I haven’t found a solution that works for me so far…  
Here is my embed, at the start of my Class :

```auto
[Embed(source="fonts/08_Underground.TTF",fontName="huit",mimeType = 'application/x-font')]
public static var font:Class;

```

Then, in my constructor :

```auto
            tf=new TextFormat();
            tf.color="0x557722";
            tf.size=33;
            tf.font="huit";
            var txt:TextField=new TextField();
            txt.width=500;
            txt.embedFonts=true;
            tf.font="huit";
            txt.setTextFormat(tf);
            txt.text="je teste...je teste...je teste...je teste...je teste...je teste...je teste...je teste...je teste...je teste...";
            txt.y=10;
            this._trigger.addChild(txt);

```

But nothing shows up. If I comment the embedFonts line, text does show up, but of course the font is not the one I wanted.  
If anyone can help ?  
Thanks,  
achim
