Chapter 6 - Font Embedding

What Do Font Glyphs Provide?

After you've set up all the fonts you wish to use in the UI, you should create localized copies of the font library for each language you wish to support.

The most optimized and efficient way to do this is to select a sub-set of glyphs that can be used in a particular language and only export this set of glyphs for that specific language. This saves disk and memory space, as only the necessary glyphs will be available.

Embedding Fonts

Scaleform 3

To embed fonts for dynamic text:

  1. Navigate to the properties of your textbox and find the Embed... button to modify the font embedding options.

    Embed

  2. Within these options, add the text "Score: 0123456789" to the Also Include These Characters: textbox.

    Also include these characters

  3. Click OK in the Font Embedding window to finalize your changes and publish your project.
  4. Following this, export your your SWF file to a GFx file as explained in Chapter 2 - Flash and Gfx.

Scaleform 4

To embed fonts for dynamic text:

  1. Navigate to the properties of your textbox and find the Embed... button to modify the font embedding options.

    Embed

  2. Within these options, add the text "Score: 0123456789" to the Also Include These Characters: textbox.

    Also include these characters

  3. Click OK in the Font Embedding window to finalize your changes and publish your project.
  4. Following this, export your your SWF file to a GFx file as explained in Chapter 2 - Flash and Gfx.