Hi everyone: using MX2004, and looping through an array to create mutliple dynamic textfields, my font refuses to embed.
How to I ensure that a font is embedded? Linkage? or what? I've already tried to embed the font through creating a textfield in frame 1 with "embed" is true, and in the library by importing the font and adding Linkage properties ( export for actionscript, frame 1), but its still not working.
code:
// mv is a reference to a newly created moviClip
mv.createTextField("txt", mv.getNextHighestDepth(), 0, 0, 100, 22);
mv.txt.html = true;
mv.txt.htmlText = a[cols];
//
var txtFmt = new TextFormat();
txtFmt.embedFonts = true;
txtFmt.font = "ProFontWindows";
txtFmt.size = 15;
//
mv.txt.autoSize = true;
mv.txt.setTextFormat(txtFmt);




Reply With Quote