Important: The information in this document is obsolete and should not be used for new development.
The Font Information Record
TheGetFontInfoprocedure 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,GetFontInforeturns 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. TheStdTxtMeasfunction also uses a record of typeFontInfoto return information about the current font. TheFontInfodata 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.