fl.isFontInstalled()

Availability

Flash CS4 Professional.

Usage

fl.isFontInstalled(fontName)

Parameters

fontName
A string that specifies the name of a device font.

Returns

A Boolean value of true if the specified font is installed; false otherwise.

Description

Method; determines whether a specified font is installed.

Example

The following code displays “true” in the Output panel if the Times font is installed.

fl.trace(fl.isFontInstalled("Times"));