# Embedded Font downward spiral

**URL:** https://forum.kirupa.com/t/embedded-font-downward-spiral/219244
**Category:** flash
**Created:** [March 15, 2007, 1:30am UTC](https://forum.kirupa.com/t/embedded-font-downward-spiral/219244 "2007-03-15T01:30:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rtFlash](https://avatars.discourse-cdn.com/v4/letter/r/ed655f/32.png) [@rtFlash](https://forum.kirupa.com/u/rtFlash)
#### Post date: [March 15, 2007, 1:30am UTC](https://forum.kirupa.com/t/embedded-font-downward-spiral/219244/1 "2007-03-15T01:30:52Z")

</div>

I’ve trawled the forums and despite lots of threads I can’t find the answer to my problem.

I am using Flash 8 and publishing to Flash 6. I have an external .as file in which I am creating a text field and loading text into the field from an XML file. I have embedded a font in the library, set the link name and exported on the first frame.

The text loads and appears if I don’t set embed to true, but I can’t get the embedded font to work.

Please! Help…

here’s the code:

linkage id:- my font

////as file  
var tf = new TextFormat();  
tf.font = “my font”;

stage.container\_mc.createTextField(“main\_txt”, 601, 346, 130, 320, 179);  
stage.container\_mc.main\_txt.setTextFormat(tf);  
stage.container\_mc.main\_txt.embedFonts = true;  
stage.container\_mc.main\_txt.multiline = true;  
stage.container\_mc.main\_txt.html = true;  
stage.container\_mc.main\_txt.wordWrap = true;
