PDA

View Full Version : Chinese fonts



drummondlw
December 5th, 2007, 07:58 AM
Hi,
I basically need to be able to use chinese fonts in my application which needs to support several different languages. I currently store the fonts I need in a separate swf file and import this which works fine. However I have had no luck doing this with chinese fonts, does anyone know how to go about this?
I haven't really been able to find much useful information about how it is achieved, especially in as3.

Thanks in advance for any ideas

Felixz
December 5th, 2007, 09:38 AM
Maybe flash.system.IME has to do with this

drummondlw
December 5th, 2007, 11:03 AM
Hmm, can't even set the conversion type:



if (Capabilities.hasIME)
{
IME.enabled = true;
IME.conversionMode = IMEConversionMode.CHINESE;
trace("Conversion mode is " + IME.conversionMode + ".");
}


#2063: Error attempting to execute IME command.

Not even sure it would help if I could..hmm..

drummondlw
December 5th, 2007, 11:26 AM
Ok, I have realised the problem, I have got chinese text appearing by embedding a chinese font in an external swf, as I tried previously.

The problem I am having still is, I have 3 fonts in this external swf, Font_Title, Font_Navigation and Font_Response, I use these identifiers in my main application. They are named like this so that I can simple change the font and re-export the swf and then I have different fonts if needed. This is the first time I have tried using the same font for each of these and the flash IDE doesn't like it.
You can only export the font once, which is understandable. My question is, how do I get all 3 to export as the same font?

Thanks

Felixz
December 5th, 2007, 12:21 PM
I have no idea, but you can create a function that changes textFormats used globally when lang changes