PDA

View Full Version : Embeding Japanese Characters


andreux
05-09-2005, 07:49 PM
I'm creating several dynamic text fields using the createTextField method. My data source is a unicode XML file. When I try and load Japanese chatacters they won't show up unless I set "embedFonts" to false, but this creates other problems.

I've embed a unicode font in my library but it still won't display the characters when the text is Japanese.

Any ideas?

red penguin
05-09-2005, 08:45 PM
I've done this by putting the JAPANESE FONT on the STAGE and then checking the embed fonts for that textField. This is off stage and only for the purpose of having these fonts embedded...

Once in the Character Options => Specify Ranges ... you'll want to muck around with them there Japanese fonts....In my file, for example, I didn't want all glyphs but merely the first 2.

andreux
05-09-2005, 09:10 PM
That sounds easy enough, but I'm hoping to localize the project by swapping out XML files, a different file for each language. I don't want to have to do this for each language.

red penguin
05-09-2005, 09:13 PM
Sure. We've done quite the same. The 'language' files are swapped and all is honky dorey. The only problems we encountered were with Japanese and Hebrew (really difficult). So those had to be changed a bit.....

The rest...used the same font (from memory)....