Embedding fonts from SWF files

You can embed fonts that are embedded in SWF files into your Flex applications.

Subtopics

About embedding fonts from SWF files
Creating Flash 8 files with embedded fonts
Embedding fonts from SWF files into Flex applications

About embedding fonts from SWF files

When you embed a font in a SWF file that you use in your Flex application, you can embed any font that is supported by Flash 8. This includes Type 1 PostScript and bitmap (Macintosh only) fonts, as well as fonts with FlashType hinting. To do this, you create a SWF file in Flash 8 that contains the fonts you want. You then reference that SWF file's font contents so that it is embedded into your Flex application.

In general, you should include the four primary typefaces for each font that you want to embed (plain, bold, italic, and bold italic). You should do this even if the font you are embedding does not have separate TTF files for each typeface. One reason to do this is that some Flex controls use one of the non-plain typefaces.

For example, the label on a Button control uses the bold typeface of the font that it uses. If you embedded a typeface and tried to use it on a Button, it would not be applied because the Button control requires the bold typeface.


Flex 2.01

Take a survey