# Problems with textfield, embedFonts and htmlText

**URL:** <https://forum.kirupa.com/t/problems-with-textfield-embedfonts-and-htmltext/193573>\
**Category:** flash\
**Created:** [July 14, 2006, 6:17am UTC](https://forum.kirupa.com/t/problems-with-textfield-embedfonts-and-htmltext/193573 "2006-07-14T06:17:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ibuypink](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ibuypink/32/2573_2.png) [@ibuypink](https://forum.kirupa.com/u/ibuypink)\
**Post date:** [July 14, 2006, 6:17am UTC](https://forum.kirupa.com/t/problems-with-textfield-embedfonts-and-htmltext/193573/1 "2006-07-14T06:17:56Z")

</div>

Hello,

I’ve got some problems with a dynamic textfield using an embedded font and displaying it as htmlText. Been googling around, but I don’t seem find an answer.

First I create my textformat:

```auto

var fmtText:TextFormat = new TextFormat();
fmtText.font = "Font";
fmtText.leading = 4;
fmtText.size = 11;
fmtText.color = 0x000000;

```

Then I createTextField

```auto

_root.container.createTextField("txt", _root.container.getNextHighestDepth(), 50, 142, 420, 1);
_root.container.txt.multiline = true;
_root.container.txt.wordWrap = true;
_root.container.txt.autoSize = true;
_root.container.txt.embedFonts = true;
_root.container.txt.selectable = false;
_root.container.txt.html = true;
_root.container.txt.setNewTextFormat(_root.fmtText);

```

and then, using htmlText, I insert the text into the textField. But the text doesn’t show. If I remove \_root.container.txt.html = true; it all works fine, but I can se all the \<br\> and I don’t want that! Does anybody know what’s wrong?
