Tag Archive for 'font'

31
Jan

Determining whether a font has specific glyphs in Flex

The following example shows how you can check whether an embedded font has a specific glyph by passing a string to the hasGlyph() method which returns a Boolean value indicating whether the font has the specified character(s).

Full code after the jump.

Continue reading ‘Determining whether a font has specific glyphs in Flex’

10
Sep

Finding out which fonts are installed on a user’s system

The following example shows how you can use the static Font.enumerateFonts() method in Flex to determine which fonts are installed on a user’s system. The enumerateFonts() method returns an array of Font objects (see the flash.text.Font for more information)

Full code after the jump.

Continue reading ‘Finding out which fonts are installed on a user’s system’