Carbon


FMetricRec

Header: Fonts.h

struct FMetricRec {
    Fixed ascent; 
    Fixed descent; 
    Fixed leading; 
    Fixed widMax; 
    Handle wTabHandle;
};
typedef FMetricRec FMetricRecPtr;

Field descriptions

ascent

The measurement from the baseline to the ascent line of the font. You can determine the line height, in pixels, by adding the values of the ascent, descent, and leading fields of the font metrics structure.

descent

The measurement from the baseline to the descent line of the font.

leading

The measurement from the descent line to the ascent line below it.

widMax

The width of the largest glyph in the font.

wTabHandle

A handle to the global width table.

The font metrics structure (of data type FMetricRec) contains a handle to the global width table, which in turn contains a handle to the associated font family resource for the current font (the font in the current graphics port). It also contains the values of four measurements for the current font.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)