GetFontInfo
Use GetFontInfo to obtain information about a font; its height and width in the current size and style.
fInfo is the address of an 8-byte FontInfo structure. Upon return, it will be filled with information about the current text font in its current
size and style.
Notes: The returned values can be used in helping to format lines of text as you
draw them on the screen. For instance, to determine how much space is
needed between lines of text:
FontInfo fi; [TOKEN:12074] 8 bytes of storage */ short lineDots;
TextFont( monaco ); [TOKEN:12074] bold, 24-point Monaco */ lineDots = fi.ascent + fi.descent + fi. leading;
MoveTo( 0, curY + lineDots ); /* e.g., drop down a line */ The 128K ROMs support the FontMetrics function that returns fixed-point information for better accuracy in high-resolution printing.