Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Text /
Chapter 3 - QuickDraw Text / QuickDraw Text Reference
Data Structures


The Font Information Record

The GetFontInfo procedure uses the font information record to return measurement information based on the font of the current graphics port. If the current font has an associated font, as do Arabic and Hebrew, GetFontInfo returns information based on both fonts. The font information record contains the ascent, the descent, the width of the largest glyph, and the leading for a given font. The StdTxtMeas function also uses a record of type FontInfo to return information about the current font. The FontInfo data type defines a font information record.

TYPE FontInfo = RECORD
   ascent:  Integer; {ascent}
   descent: Integer; {descent}
   widMax:  Integer; {maximum glyph width}
   leading: Integer; {leading} 
   END; 
Field Description
ascent
The measurement in pixels from the baseline to the ascent
line of the font.
descent
The measurement in pixels from the baseline to the descent line
of the font.
widMax
The width in pixels of the largest glyph in the font.
leading
The measurement in pixels from the descent line to the ascent
line below it.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996