There are two possibilities which came to my mind. I'm not really sure if these 
completely address the issue, because due to my experience in Flash I would not 
expect these suggestions to necessarily be the cause of this kind of problem.

First, I would try to use UTF-8 for every XML file.

Second, the font may not support these characters.

You might try this on another computer or another version of Flash to see if 
there isn't something unusual happening on your machine. Sometimes the things 
that make no sense are simply glitches and not a failure of design.




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Downs
Sent: Friday, October 19, 2007 4:26 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Non-latin glyphs for custom fonts not embedded 
intextFields

I'm having a struggle getting non-latin glyphs in my TextField  
instances to display properly.

Environment: Flash 9, Mac OS X 10.4.10
Publish target: Flash Player 8, ActionScript 2 (yuck, but that's the  
corporate client)


I have an external xml file with text in html tags. The non-Latin  
character data contained in these tags is reading in an propagating  
properly, as a simple trace indicates so. The problem comes down to  
displaying this text in a TextField.

The text field in question is set to Dynamic Text, and uses a custom,  
embedded font. The font is linked to export in first frame, before  
the text field appears. The text field has "All (54665 glyphs)"  
selected as the Embed option. Inserting additional needed character  
glyphs in the "Include these characters:" field to "force it to work"  
doesn't help.

Here are two implementation scenarios:

Scenario A (doesn't work):

        ) The text field contains a Latin string by default: "watermelon"
        ) Try to fill the text field with a mixed character glyph phrase:
                tf.htmlText = "Bang Приставки";


Scenario B (does work):

        ) The text field contains a string beginning with a non-Latin  
character contained in the dynamic text string fed it: "группы  
poopie"
        ) Try to fill the text field with a mixed character glyph phrase:
                tf.htmlText = "Bang Приставки";


Scenario C (does work):
        
        ) Change the font of text field to a non-embedded screen font: _sans.
        ) The text field contains a Latin string by default: "watermelon"
        ) Try to fill the text field with a mixed character glyph phrase:
                tf.htmlText = "Bang Приставки";


I need scenario A to work, as I can't predict what non-Latin  
character will dynamically be fed into these localized text fields at  
runtime, and I need to use the corporate font for the proper suit-and- 
tie look. Trying to use special charCodes for the input text is also  
an unacceptable solution (and I doubt it would help as the encoded  
text is being read in properly, just not displayed properly). Setting  
System.useCodepage = true did not work either.

So why aren't all embedded character glyphs recognized?
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to