Skip to main content
Participant
May 20, 2010 3:07 PM UTC
Question

Characters not found in embedded font

What font does the TLF uses when it can't find the characters in the embedded font?

For example we have a non-latin text (like Arabic, Chinese, ...), but in the text are a few latin-type characters used (a brand name, numbers, ...). TLF won't find these in the embedded non-latin font, so it will default to a system font (I guess). Is it possible to default it to another font than the system font (something like Helvetica)? Or can we tweak it with the container, paragraph or character formats, and create some hierarchy?

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

May 20, 2010 7:41 PM UTC

All you can do is assign a different font to those latin characters using the fontFamily attribute.

If the font assigned does not have a particular glyph, Flash Player goes to a single fallback font which depends on the glyph. That fallback font is hardcoded and there currently is no method for changing this behavior.

Translate
Known Participant
Sep 23, 2010 9:33 PM UTC

Hi - Is there any event that will get triggered when flash does not find that glyph in the font and it is going to load it from fall back font? We essentially need to prevent this from happening. We dont want the user to be able to use any characters which we ve not embedded in the font. Pls let us know how do we identify it?

Translate
Adobe Employee
Sep 24, 2010 5:50 AM UTC

If you get the TextLine that is used to display the text, you can call its dump() method. The result is an XML string that contains information about all the atoms in the line, including the font that used to display each one. Time consuming, but it would work.

- robin

Translate