# embedFont causes text to disappear

**URL:** <https://forum.kirupa.com/t/embedfont-causes-text-to-disappear/273443>\
**Category:** flash\
**Created:** [October 15, 2008, 3:49pm UTC](https://forum.kirupa.com/t/embedfont-causes-text-to-disappear/273443 "2008-10-15T15:49:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![beard86](https://avatars.discourse-cdn.com/v4/letter/b/8dc957/32.png) [@beard86](https://forum.kirupa.com/u/beard86)\
**Post date:** [October 15, 2008, 3:49pm UTC](https://forum.kirupa.com/t/embedfont-causes-text-to-disappear/273443/1 "2008-10-15T15:49:53Z")

</div>

Hi, I’ve been having this problem for a long time and i still cannot resolve it, before I’ve just found ways aroound it, if I have dynamically loaded text deom an XML document and I want to use a Font from my own library, I can’t because when i go to use the embedFonts statement it disappears, the everything else works fine, as long as i don’t use that command. I have set up the Font in the library, given it my own instance name but it will not work. has anyone else had a similar problem? here is the code if that might help…:

```auto
            target.createEmptyMovieClip("holderMain",target.getNextHighestDepth);
            target.holderMain.createTextField("my_txt",2,0,110,345,120)
            target.my_txt.selectable = false;
target.holderMain.my_txt.wordWrap = true;
            target.my_txt.border = false;
            myformat = new TextFormat();
            myformat.color = 0xFFFFFF;
            myformat.bullet = false;
            myformat.underline = false;
            myformat.font = "please";
            myformat.size = "10";
            target.holderMain.my_txt.htmlText = Math.floor((loadedBytes/totalBytes)*100);
            target.holderMain.my_txt.embedFonts = true;
            target.holderMain.my_txt.setTextFormat(myformat);

```

thanks if anyone can help…
