Font Embed Prob

I’m loading an external swf into my main swf that has embedded fonts. ie, this is the code in my font.fla:

import flash.text.*;
Font.registerFont(Aachen);

Aachen is the linkage name in the lib. then in my main.fla(one that loads the font.swf), i’m doing this:

t.embedFonts = true;
trace('fname: ’ + Font.enumerateFonts()[0].fontName);
t.setTextFormat(new TextFormat(Font.enumerateFonts()[0].fontName, 29, 0x043F5F));

the trace() always prints out the correct font name but the textField is completely blank.

the font that i want to embed is used throughout the main.fla as static text. if i use any other font for the embed font the text shows for the actionScript above.

so it seems like because the static text uses the same font i want to embed, it’s blocking it. has anyone see this before? solution?

thanks

if you’re using flash cs3, are you importing the font to the library? if not, you should be :smiley:

i did create a library symbol for the font but it’s not in my main.fla, it’s is in my fonts.fla as mentioned. the fonts.swf is loaded into the main.swf and the embedded fonts should be available. i’m doing it this way because i want to preload the fonts.

as mentioned, this works with any font that isn’t used in a static textfield in the main.fla.

why is it clashing?

i’ve come across this problem before. I had to make the textfield via programming instead of making a textfield on the stage. (esp helps with the textfields being scrollable when you don’t want them to be)

edit: i should mention, i’ve had a similar problem before but I’ve never used a separate .swf just for fonts / other assets for preloading purposes.