Re: Non-latin glyphs for custom fonts not embedded in textFields
Rich Rainbolt <[email protected]> Sun, 21 Oct 2007 12:26:32 -0700
| Newsgroups | gmane.comp.web.flashcoders.devel |
|---|---|
| Message-ID | <[email protected]> |
Unsubscribe Remove On Oct 19, 2007, at 4:25 PM, Stephen Downs wrote: > 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 =20 > the 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 =20 > custom, embedded font. The font is linked to export in first frame, =20= > before the text field appears. The text field has "All (54665 =20 > glyphs)" selected as the Embed option. Inserting additional needed =20 > character glyphs in the "Include these characters:" field to "force =20= > 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 =3D "Bang =D0=9F=D1=80=D0=B8=D1=81=D1=82=D0=B0= =D0=B2=D0=BA=D0=B8"; > > > 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: "=D0=B3=D1=80=D1=83= =D0=BF=D0=BF=D1=8B =20 > poopie" > ) Try to fill the text field with a mixed character glyph = phrase: > tf.htmlText =3D "Bang =D0=9F=D1=80=D0=B8=D1=81=D1=82=D0=B0= =D0=B2=D0=BA=D0=B8"; > > > 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 =D0=9F=D1=80=D0=B8=D1=81=D1=82=D0=B0= =D0=B2=D0=BA=D0=B8"; > > > 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 =20 > at runtime, and I need to use the corporate font for the proper =20 > suit-and-tie look. Trying to use special charCodes for the input =20 > text is also an unacceptable solution (and I doubt it would help as =20= > the encoded text is being read in properly, just not displayed =20 > properly). Setting 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