GetFontInfo()

Summary

Gets information about a font.

Syntax

font_info = GetFontInfo(string font_name)

Argument Contents
font_name The name of the font

Returns

Returns an array of three elements describing the font:

Element Type Contents
1 String The scalability of the font ("Scalable" or "Not Scalable")
2 Array An array of integers indicating valid font sizes if the font is not scalable, or null if the font is scalable
3 Array An array of two integers indicating the index of the first and last characters in the font

Notes

  • Scalable fonts are also called TrueType fonts.

See Also

Function Summary
ChooseFont() Gets a font using the Windows Font dialog box
GetFontNames() Gets a list of the names of installed fonts