# embedFonts not working

**URL:** https://forum.kirupa.com/t/embedfonts-not-working/248574
**Category:** flash
**Created:** [January 9, 2008, 8:21pm UTC](https://forum.kirupa.com/t/embedfonts-not-working/248574 "2008-01-09T20:21:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nburlington](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/nburlington/32/1365_2.png) [@nburlington](https://forum.kirupa.com/u/nburlington)
#### Post date: [January 9, 2008, 8:21pm UTC](https://forum.kirupa.com/t/embedfonts-not-working/248574/1 "2008-01-09T20:21:02Z")

</div>

I’ve added the font to my library and set the linkage with export to first frame checked but its not working. Can someone see what I’m doing wrong?

```auto
    function labelUpFormat():TextFormat{
    var textFormat = new TextFormat();
    textFormat.size = 10;
    textFormat.font = "Whitney-Bold";
    textFormat.align = "left";
    textFormat.bold = true;
    textFormat.color = lfOrange;
    return textFormat;
    }

var id = _root.dif.createTextField("id",_root.dif.getNextHighestDepth(),200,200,200,200);
    id.embedFonts = true;
    id.type = "dynamic";
    
    id.text = "This is my text";
    
    id.setTextFormat(labelUpFormat());
    id.selectable = false;

```
