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 Bitmapped Font ('NFNT') Resource


The Font Type Element

The font type element of the bitmapped font resource is represented as the fontType field in the FontRec data type. This integer field defines the general characteristics of the font and records whether certain tables are present. Its bits are used as follows.
BitMeaning
0This bit is set to 1 if the font resource contains an image height table.
1This bit is set to 1 if the font resource contains a glyph-width table.
2-3These two bits define the depth of the font. Each of the four possible values indicates the number of bits (and therefore, the number of colors) used to represent each pixel in the glyph images.
 ValueFont depthNumber of colors
 01-bit1
 12-bit4
 24-bit16
 38-bit256
 Normally the font depth is 0 and the glyphs are specified as monochrome images. If bit 7 of this field is set to 1, a resource of type 'fctb' with the same ID as the font can optionally be provided to assign RGB colors to specific
pixel values.

If this font resource is a member of a font family, the settings of bits 8 and 9 of the fontStyle field in this font's association table entry should be the same as the settings of bits 2 and 3 in the fontType field. For more information, see "The Font Association Table" on page 4-89.

4-6Reserved. Should be set to 0.
7This bit is set to 1 if the font has a font color table ('fctb') resource. The font
is for color Macintosh computers only if this bit is set to 1.
8This bit is set to 1 if the font is a synthetic font, created dynamically
from the available font resources in response to a certain color and screen depth combination. The font is for color Macintosh computers only if this bit
is set to 1.
9This bit is set to 1 if the font contains colors other than black. This font is for color Macintosh computers only if this bit is set to 1.
10-11Reserved. Should be set to 0.
12Reserved. Should be set to 1.
13This bit is set to 1 if the font describes a fixed-width font, and is set to 0 if the font describes a proportional font. The Font Manager does not check the setting of this bit.
14This bit is set to 1 if the font is not to be expanded to match the screen depth. The font is for color Macintosh computers only if this bit is set to 1. This is for some fonts, such as Kanji, which are too large for synthetic fonts to be effective or meaningful, or bitmapped fonts that are larger than 50 points.
15Reserved. Should be set to 0.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996