Category Archives: Fonts

Embedding local system fonts in Flex 4

In a previous example, “Embedding fonts by name instead of location”, we saw how you could embed a font in Flex by specifying the font name instead of a location by using the local() function instead of the src() function when embedding a font.

The following example shows how you can load a system font in Flex 4 by specifying a custom Flex configuration file and specifying a local font path.

Full code after the jump.

Continue reading Embedding local system fonts in Flex 4

Embedding fonts in a Flex application using Embed metadata (redux)

In a previous example, “Embedding fonts in a Flex application using Embed metadata”, we saw how you could embed fonts using the [Embed] metadata with the source attribute.

The following example shows how you can embed system fonts in a Flex application using the [Embed] metadata with the systemFont attribute.

Full code after the jump.

Continue reading Embedding fonts in a Flex application using Embed metadata (redux)

Specifying custom named unicode ranges in Flex

We’ve looked at general font embedding and unicode ranges before in previous examples (see “Embedding and animating fonts in a Flex application” and “Specifying certain unicode-ranges for embedded fonts”), but this example will show you how you can embed a named range of unicode characters into an application by editing your flex-config.xml file and specifying unicode ranges.

Full code after the jump.

Continue reading Specifying custom named unicode ranges in Flex