RE: Non-latin glyphs for custom fonts not embedded intextFields

"Granick, JoshuaX D" <[email protected]> Mon, 22 Oct 2007 08:46:39 -0700
Newsgroups gmane.comp.web.flashcoders.devel
Message-ID <8A3E977AB3C24845947ADAAE0526E3950324678A@orsmsx419.amr.corp.intel.com>
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 Flas=
h I would not expect these suggestions to necessarily be the cause of thi=
s 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 th=
e things that make no sense are simply glitches and not a failure of desi=
gn.




-----Original Message-----
From: [email protected] [mailto:flashcoders-bounc=
[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 int=
extFields

I'm having a struggle getting non-latin glyphs in my TextField =20
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 =20
corporate client)


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

The text field in question is set to Dynamic Text, and uses a custom, =20
embedded font. The font is linked to export in first frame, before =20
the text field appears. The text field has "All (54665 glyphs)" =20
selected as the Embed option. Inserting additional needed character =20
glyphs in the "Include these characters:" field to "force it to work" =20
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 =3D "Bang =F0=D2=C9=D3=D4=C1=D7=CB=C9";


Scenario B (does work):

	) The text field contains a string beginning with a non-Latin =20
character contained in the dynamic text string fed it: "=C7=D2=D5=D0=D0=D9=
 =20
poopie"
	) Try to fill the text field with a mixed character glyph phrase:
		tf.htmlText =3D "Bang =F0=D2=C9=D3=D4=C1=D7=CB=C9";


Scenario C (does work):
=09
	) 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 =3D "Bang =F0=D2=C9=D3=D4=C1=D7=CB=C9";


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