# TextFormat - customized font not working

**URL:** <https://forum.kirupa.com/t/textformat-customized-font-not-working/256098>\
**Category:** flash\
**Created:** [March 30, 2008, 7:04pm UTC](https://forum.kirupa.com/t/textformat-customized-font-not-working/256098 "2008-03-30T19:04:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![asscripter](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@asscripter](https://forum.kirupa.com/u/asscripter)\
**Post date:** [March 30, 2008, 7:04pm UTC](https://forum.kirupa.com/t/textformat-customized-font-not-working/256098/1 "2008-03-30T19:04:02Z")

</div>

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.

```auto
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.
