Carbon


FontRec

Header: Fonts.h

struct FontRec {
    SInt16 fontType; 
    SInt16 firstChar; 
    SInt16 lastChar; 
    SInt16 widMax; 
    SInt16 kernMax; 
    SInt16 nDescent; 
    SInt16 fRectWidth; 
    SInt16 fRectHeight; 
    UInt16 owTLoc; 
    SInt16 ascent; 
    SInt16 descent; 
    SInt16 leading; 
    SInt16 rowWords;
};
typedef FontRec FontRecPtr;

Field descriptions

fontType

Font type.

firstChar

Character code of first glyph.

lastChar

Character code of last glyph.

widMax

Maximum glyph width.

kernMax

Negative of maximum glyph kern.

nDescent

Negative of descent.

fRectWidth

Width of font rectangle.

fRectHeight

Height of font rectangle.

owTLoc

Location of width/offset table.

ascent

Ascent.

descent

Descent.

leading

Leading.

rowWords

Row width of bit image / 2.

The font structure, of data type FontRec, describes the format of ‘NFNT' and, likewise, the 'FONT' resource. It is shown here as a guide to the format of the resource. The font structure is not used directly by any Font Manager functions. The fields of the font structure are described in the section‘NFNT'


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