# Embed fonts

**URL:** <https://forum.kirupa.com/t/embed-fonts/246639>\
**Category:** Uncategorized\
**Created:** [December 13, 2007, 12:12am UTC](https://forum.kirupa.com/t/embed-fonts/246639 "2007-12-13T00:12:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bardic](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bardic/32/3708_2.png) [@bardic](https://forum.kirupa.com/u/bardic)\
**Post date:** [December 13, 2007, 12:12am UTC](https://forum.kirupa.com/t/embed-fonts/246639/1 "2007-12-13T00:12:27Z")

</div>

```auto
var bdy:TextFormat = new TextFormat();
bdy.color = 0x60503B;
bdy.font = "hnbc-13";

var tfield:TextField = txt.createTextField("txtfld",txt.getNextHighestDepth(),0,0,0,0);
tfield._width = 460;
tfield._height = 500;
tfield.multiline = true;
tfield.wordWrap = true;
tfield.html = true;
tfield.htmlText = "RAGE";
tfield.embedFonts = true;
tfield.setTextFormat(bdy);

```

That works. But the problem is when I change the text in the text field is the problem. I just stops displaying.

```auto
_parent.txt.txtfld.htmlText = article.firstChild.childNodes[2].attributes.text.replace("[","<").replace("]",">");

```

I have the font in the library, and linked. I know it’s done right since it works for the first time. But after that no go.

Any thoughts on this?
