EmbedFonts

Hello

Trying to use embedded fonts but can’t get the code below to work.Where’s my error?

thumbTitleFormat=new TextFormat();
thumbTitleFormat.font=“exportedArialFont”;
thumbTitleFormat.align=“center”;
thumbTitleFormat.size=10;
thumbTitleFormat.color=0xFF0000;
createTextField(“thumbTitle_txt”,13,0,0,0,0);
thumbTitle_txt.setNewTextFormat(thumbTitleFormat);
thumbTitle_txt.autosize=“center”;
thumbTitle_txt.embedFonts=true;
thumbTitle_txt.text=“text”;

There’s nothing wrong, are you sure you exported the font in the library?

Yep. The font is exported in the library with the correct linkage name. V strange

Post your FLA and I’ll see if I can get to the bottom of it :slight_smile: