# Dynamic text fonts problem

**URL:** <https://forum.kirupa.com/t/dynamic-text-fonts-problem/98707>\
**Category:** Uncategorized\
**Created:** [January 10, 2004, 12:57am UTC](https://forum.kirupa.com/t/dynamic-text-fonts-problem/98707 "2004-01-10T00:57:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![backbaychef](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@backbaychef](https://forum.kirupa.com/u/backbaychef)\
**Post date:** [January 10, 2004, 12:57am UTC](https://forum.kirupa.com/t/dynamic-text-fonts-problem/98707/1 "2004-01-10T00:57:50Z")

</div>

(flash mx 2004 professional educational edition)

I am dynamically creating textfields and am wanting to apply a certain font depending on various types of data that I load in from xml. I am currently using a chinese font PMingLiU. It is a good type font, but I am trying to load “AR PL KaitiM Big5”, which is a great handwritten font. This is for a flash card program I am working on to help with Chinese, and I think it would be a little more useful for people if it used the handwritten font instead of the type font.

Problem: The text field doesn’t seam to apply the “AR PL KaitiM Big5” font, but it does the “PMingLiU” font just fine. PMingLiU: .ttc ; AR PL KaitiM Big5: ttf

I think it is because of the space, but I tried renaming the font with fontNamer, (I changed it to ARPLKaitiMBig5), but that didn’t seam to make a difference. Any ideas?

Here is the code, and if you need the font I can send it, (I think). I don’t quite know where I got the pmingliu font.

(the characters show up in flash but wont work here. They are just wo shi, and zhong. Any character will do for the test though)

//‰ä¥  
//AR PL KaitiM Big5  
var tempTF:TextFormat = new TextFormat();  
tempTF.size = 36;  
[//tempTF.font](https://tempTF.font) = “AR PL KaitiM Big5”;  
[//tempTF.font](https://tempTF.font) = “ARPLKaitiMBig5”;  
[//tempTF.font](https://tempTF.font) = “PMingLiU”;  
\_root.createTextField(“chin\_txt”,\_root.getNextHighestDepth(),0,0,400,400);  
\_root.chin\_txt.setNewTextFormat(tempTF);  
\_root.chin\_txt.text += “’†”;

–BackBayChef
