beautypg.com

Embed fonts for consistent text appearance – Adobe Flash Professional CC 2014 v.13.0 User Manual

Page 590

background image

Embed fonts for consistent text appearance

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.

Beginning with Flash Professional CS5, Flash 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 Flash 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.

The Font Embedding dialog box allows you to:

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 Flash Professional CC. For more information, see

Opening Flash CS6 file with Flash Profesional CC

.

Continue to work with Flash Professional 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 Professional CS5 and later allow you to edit these
older embedded fonts with the Font Embedding dialog box.

To embed characters from a font in a SWF file:

1. With your FLA file open in Flash, open the Font Embedding dialog box by doing one of the following:

Choose Text > Font Embedding.

From the Library panel options menu, choose Add Font.

Right-click in empty space in the Library panel tree view, and choose New Font.

In the Text Property inspector, click on the Embed button.

2. If your font is not already selected in the Font Embedding dialog box, click the Add (+) button to add a new embedded font to your FLA file.

When you open the Font Embedding dialog box from the Library or the Text Property inspector, a font item appears automatically in the
dialog box.

3. In the Options tab, select the Family and Style of the font you want to embed.

If you opened the Font Embedding dialog box from the Text Property inspector or from the Library panel, the font used by the current

583