I am trying to get my Trebuchet font working for several different styles in a single fla. I am using Flash CS5 and AS3, but I must
publish it in flash player 9, so TLF-text is out. I am really confused and irritated by this.
The fields are placed on the stage manually and must be able to handle htmlText.
I embed all 3 fonts in the library but it doesn´t work. If I only use one of the fields, and therefore only one style, it works great.
There is a simple testfile that illustrates the problem:http://www.ripoff.se/myDynFonts.zip
If anyone knows anything, please let me know
are you using a textformat instance to assign the 3 fonts and then assiging the textformat instance to your textfields?
Thanx a lot!
All I needed to do was to set the properties that was unique. Color, size, and
other stuff seems to be inherited från the embedded font.
var myFormatBold:TextFormat = new TextFormat();
myFormatBold.bold = true;
var myFormatBoldItalic:TextFormat = new TextFormat();
myFormatBoldItalic.italic = true;
myFormatBoldItalic.bold = true;
text_regular.htmlText = "new text just regular style.";
text_bold.htmlText = "this should be bold";
text_bold_italic.htmlText = "this should be bold and italic!";
Im a happy man again!