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
The Font Family ('FOND') Resource


The Font Association Table

The font association table of the font family resource maps a point size and style into
a specific font that is part of the family. This table is represented by the fontAssoc field
of the font family resource. This table, which is shown in Figure 4-24, matches a given
font size and style combination with the resource ID of a'FONT', bitmapped, or
outline resource.

Figure 4-24 The font association table

The font association table consists of an integer count and a variable number of font association entries. The table is represented by the FontAssoc data type, which is shown on page 4-43.

Each font association entry is represented by the AsscEntry data type, which is shown on page 4-43. The Font Manager looks first for outline font resources, then bitmapped font resources, then'FONT' resources. Entries are sorted according to point size, with the smallest sizes coming first in the table. The font size value for outline font resources is 0, so they are always listed first. Plain fonts are sorted before styled fonts. The elements of each entry are:

Note
Bits 8 and 9 of the fontStyle field of the font association table entry specify the font depth. They need to contain the same values as bits 2 and 3 of the fontType field of the font resource that this entry describes.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996