When your published SWF files play on computers across the Internet, there is no guarantee that the fonts you used are available on those machines. To ensure that your text maintains the appearance you intended, you can embed entire fonts or specific subsets of characters from a font. By embedding the characters in your published SWF file, you make the font available to the SWF file regardless of the computer that plays the file. Once a font is embedded, you can use it anywhere in your published SWF file.
Animate automatically embeds all characters used by any text objects that contain text. Creating an embedded font symbol yourself allows your text objects to use additional characters, such as when accepting user input at runtime or when editing text with ActionScript. Embedded fonts are not necessary for text objects that have the Anti-alias property set to Use Device Fonts. You specify which fonts you want embedded in your FLA file, and Animate embeds the fonts when you publish a SWF file.
There are 4 common situations in which to ensure correct text appearance by embedding fonts in a SWF file:
- When creating text objects in your FLA file that are part of a design that requires consistent text appearance.
- When you are using an anti-alias option other than Use Device Fonts, you must embed the fonts or text may disapppear or appear incorrectly.
- When generating text dynamically with ActionScript in your FLA file.
- When creating dynamic text with ActionScript, you must specify in ActionScript which font to use.
- When your SWF file contains text objects and may be loaded by another SWF file that does not have the required fonts embedded.
Manage all embedded fonts in one place.
Create font symbols for each embedded font.
Select custom ranges of embedded characters for a font as well as pre-defined ranges.
Work with both Text Layout Framework (TLF) text and Classic text in the same file and use embedded fonts with each. Note that TLF text is unavailable with Animate CC. For more information, see Opening CS6 file with Animate CC.
-
If you selected Export for ActionScript, select an outline format also. For TLF text containers, select TLF (DF4) as the Outline Format. For Classic text containers, select Classic (DF3).
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 across files.
-
Right-click the font symbol in the Library and choose Properties.
Select a text container on the Stage and click the Embed button in the Character section of the Property inspector.
Select the font symbol in the Library and choose Edit Properties from the panel options menu.
Double-click the icon of the font symbol in the Library.
Choose Text > Font Embedding, and then select the font symbol you want to edit in the tree view on the left of the dialog.