![]() |
FontInfo |
Header: QuickdrawText.h |
struct FontInfo { SInt16 ascent; SInt16 descent; SInt16 widMax; SInt16 leading; };
The measurement, in pixels, from the baseline to the ascent line of the font.
The measurement, in pixels, from the baseline to the descent line of the font.
The width, in pixels, of the largest glyph in the font.
The measurement, in pixels, from the descent line to the ascent line below it.
The FontInfo data type defines a font information structure. The GetFontInfo function uses the font information structure 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 structure contains the ascent, the descent, the width of the largest glyph, and the leading for a given font. The StdTxMeas function also uses a structure of type FontInfo to return information about the current font.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)