Hi, I have a strange problem. I’m using a non-window default font (installed on my PC) to show in a text field. This font is also present in my library with appropriate linkage name. Now if i use this font in the TexFormat the font does not show, instead the text is shown in default ‘Times’ font.
But if i use “Arial” as TextFormat font then the textfield’s text appear in arial font, although the arial font is not present in the library.
var myformat:TextFormat = new TextFormat();
myformat.font = "MyradPro"; //"Arial" works fine.
this.createTextField("mytext",2,100,100,100,100);
mytext.multiline = true;
mytext.wordWrap = true;
mytext.border = true;
mytext.html = true;
mytext.htmlText = "<b>this </b>is my first <b><u>test</u></b> field object text";
mytext.setTextFormat(myformat);
this code shows the text in default ‘Times’ font.