Skip to main content
Participant
May 20, 2010
Question

Characters not found in embedded font

  • May 20, 2010
  • 1 reply
  • 1049 views

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 has been closed for replies.

1 reply

May 20, 2010

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.

Known Participant
September 23, 2010

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?

Adobe Employee
September 24, 2010

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