FontInstalled

Description:

baFontInstalled reports whether or not a TrueType or Bitmap font is installed.

Platforms:

Windows and Macintosh

Usage:

Result = baFontInstalled( FontName, Style )

Arguments:

String, string.
FontName is the name of the font family eg "Arial".
Style is the specific style eg "Bold". Use an empty string ("") to see if the basic font is installed. The style is ignored if FontName is a Bitmap font.

Returns:

Integer.
Returns 1 if the font is presently installed, otherwise 0.

Examples:

Director:
FontOK = baFontInstalled( "Arial", "Bold Italic" )

Authorware:
FontOK := baFontInstalled( "Arial", "Bold Italic" )
 

Notes:

If you ask for a specific font style, then the function will only return true if that style is present. For example, if you ask for "Arial", "Bold" and only the normal Arial is installed, this function will return 0. Some fonts may have different names for the styles, eg "Black" for bold and "Oblique" for italic. You must use the names built into the font.

On Macintosh, the Style argument is ignored.

 

See also:

baFontStyleList
baFontList
baInstallFont