# Embeded

**URL:** <https://forum.kirupa.com/t/embeded/290896>\
**Category:** flash\
**Created:** [June 22, 2009, 1:24am UTC](https://forum.kirupa.com/t/embeded/290896 "2009-06-22T01:24:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenBart](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@BenBart](https://forum.kirupa.com/u/BenBart)\
**Post date:** [June 22, 2009, 1:24am UTC](https://forum.kirupa.com/t/embeded/290896/1 "2009-06-22T01:24:37Z")

</div>

I can’t figure out why my fonts won’t be embeded. Any clue?

```auto
var tField:TextField = new TextField();
    var textFormat:TextFormat = new TextFormat();
    
    textFormat.font = "Avenir 45 Book";
    textFormat.size = 16;
    textFormat.color = 0xFFFFFF;
    tField.embedFonts = true;
    
    tField.defaultTextFormat = textFormat;
    tField.width = 200;
    //tField.embedFonts = true;
    
    //tField.autoSize = TextFieldAutoSize.LEFT;
    tField.text = textForField;
    trace(tField.textWidth);

```
