Home > Terms > English (EN) > font symbol

font symbol

Beginning with 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:

  • When creating text objects in your FLA file that are integral to a design that requires consistent text appearance
  • When generating text dynamically with ActionScript in your FLA file (when you create 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. 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:

  1. Open the Font Embedding dialog box (Text > Font Embedding).
  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.
  4. In the Character Ranges section, select the character ranges you want to embed. The more characters you embed, the larger the file size of your published SWF file
  5. If you want to embed additional specific characters, enter them in the "Also include these characters" field.
  6. To enable the embedded font symbol to be accessed with ActionScript code, select Export for ActionScript in the ActionScript tab.
  7. 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).
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.

0
Collect to Blossary

Member comments

You have to log in to post to discussions.

Terms in the News

Billy Morgan

Sports; Snowboarding

The British snowboarder Billy Morgan has landed the sport’s first ever 1800 quadruple cork. The rider, who represented Great Britain in the 2014 Winter Olympics in Sochi, was in Livigno, Italy, when he achieved the man-oeuvre. It involves flipping four times, while body also spins with five complete rotations on a sideways or downward-facing axis. The trick ...

Marzieh Afkham

Broadcasting & receiving; News

Marzieh Afkham, who is the country’s first foreign ministry spokeswoman, will head a mission in east Asia, the state news agency reported. It is not clear to which country she will be posted as her appointment has yet to be announced officially. Afkham will only be the second female ambassador Iran has had. Under the last shah’s rule, Mehrangiz Dolatshahi, a ...

Weekly Packet

Language; Online services; Slang; Internet

Weekly Packet or "Paquete Semanal" as it is known in Cuba is a term used by Cubans to describe the information that is gathered from the internet outside of Cuba and saved onto hard drives to be transported into Cuba itself. Weekly Packets are then sold to Cuban's without internet access, allowing them to obtain information just days - and sometimes hours - after it ...

Asian Infrastructure Investment Bank (AIIB)

Banking; Investment banking

The Asian Infrastructure Investment Bank (AIIB) is an international financial institution established to address the need in Asia for infrastructure development. According to the Asian Development Bank, Asia needs $800 billion each year for roads, ports, power plants or other infrastructure projects before 2020. Originally proposed by China in 2013, a signing ...

Spartan

Online services; Internet

Spartan is the codename given to the new Microsoft Windows 10 browser that will replace Microsoft Windows Internet Explorer. The new browser will be built from the ground up and disregard any code from the IE platform. It has a new rendering engine that is built to be compatible with how the web is written today. The name Spartan is named after the ...

Featured Terms

Sanket0510
  • 0

    Terms

  • 22

    Blossaries

  • 25

    Followers

Industry/Domain: Computer Category: Computer hardware

Intel Galileo

The Intel® Galileo board is a microcontroller board based on the Intel® Quark SoC X1000 application processor, a 32-bit Intel® Pentium® brand system ...

Featured blossaries

Political

Category: Politics   1 2 Terms

Idioms from English Literature

Category: Literature   1 11 Terms

Browers Terms By Category