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 Style-Mapping Table Record

The style-mapping table record, which is part of the font family resource, provides information that is used by printer drivers to implement font styles. Each font family can have its own character encoding and its own set of font suffix names for style designations. Each style of a font has its own name, typically created by adding a style suffix to the base name of the font, as described in the section "The Style-Mapping Table" beginning on page 4-93. The table record, of data type StyleTable, provides information about the font class and is followed by the font name suffix subtable and the font glyph-encoding subtable.

TYPE StyleTable =
RECORD
   fontClass:  Integer;       {font class of this font family}
   offset:     LongInt;       {offset to glyph-encoding subtable}
   reserved:   LongInt;       {reserved}
   indexes:    PACKED ARRAY [0..47] OF SignedByte;
                              {indexes into the font suffix name }
                              { table that follows this table}
END;
The font suffix name subtable record, of data type NameTable, contains the base name and suffixes for a font family.

TYPE NameTable = 
RECORD
   stringCount:   Integer;    {string count}
   baseFontName:  Str255;     {base font name}
   {suffix strings}           {strings}
END;
The fields of the style-mapping table and font suffix name subtable are described in the section "The Style-Mapping Table," beginning on page 4-93.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996