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 4 - Font Manager / Font Manager Reference
Data Structures


The Font Record

The font record, of data type FontRec, describes the format of the bitmapped font ('NFNT') resource (and, likewise, the 'FONT' resource). It is shown here as a guide to the format of the resource. The font record is not used directly by any Font Manager routines.

TYPE FontRec =
RECORD
   fontType:   Integer;    {font type}
   firstChar:  Integer;    {character code of first glyph}
   lastChar:   Integer;    {character code of last glyph}
   widMax:     Integer;    {maximum glyph width}
   kernMax:    Integer;    {maximum glyph kern}
   nDescent:   Integer;    {negative of descent}
   fRectWidth: Integer;    {width of font rectangle}
   fRectHeight:Integer;    {height of font rectangle}
   owTLoc:     Integer;    {offset to width/offset table}
   ascent:     Integer;    {maximum ascent measurement}
   descent:    Integer;    {maximum descent measurement}
   leading:    Integer;    {leading measurement}
   rowWords:   Integer;    {row width of bit image in 16-bit wds}
END;
The fields of the font record are described in the section "The Bitmapped Font ('NFNT') Resource," beginning on page 4-62.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996