25 July 2010
Beginning with Adobe Flash Professional CS5, Flash automatically embeds all characters used by any text objects that contain text. By creating an embedded font symbol, you can enable text objects in your project to use additional characters. This is helpful when users will be inputting text into fields at runtime or when you'll be editing text on the fly with ActionScript.
Embedded fonts are not necessary for text objects that have their antialias property set to the Use Device Fonts option. You can specify which fonts you want to embed in your FLA file, and Flash embeds the fonts when you publish a SWF file.
There are three common situations when embedding fonts is recommended to ensure correct text appearance in a SWF file:
The Font Embedding dialog box allows you to manage all embedded fonts in one place. Using it, you can create font symbols for each embedded font. Select custom ranges of embedded characters for a font as well as predefined ranges. You can work with both Text Layout Framework (TLF) text and Classic text in the same file and use embedded fonts with each.
Continue to work with Flash CS4 and earlier FLA files that contain fonts embedded with the older method that associated the embedded characters with a specific text object. When you open an older FLA file, Flash CS5 and later will allow you to edit these older embedded fonts with the Font Embedding dialog box.
To embed characters from a font in a SWF file, follow these steps:
Note: You must create separate embedded font symbols for use in TLF and Classic text containers. The TLF (DF4) outline format is not available for PostScript Type 1 fonts. TLF (DF4) requires Flash Player version 10 or later.
If you want to use the font symbol as a shared asset, select options in the Sharing section of the ActionScript tab. For more information about using shared assets, see Sharing library assets in the Flash documentation.
To learn more about symbols, see the section titled Working with symbols in the Flash documentation.