Important: The information in this document is obsolete and should not be used for new development.
The Font Type Element
The font type element of the bitmapped font resource is represented as thefontType
field in theFontRec
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.
Bit Meaning 0 This bit is set to 1 if the font resource contains an image height table. 1 This bit is set to 1 if the font resource contains a glyph-width table. 2-3 These 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. Value Font depth Number of colors 0 1-bit 1 1 2-bit 4 2 4-bit 16 3 8-bit 256 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 thefontType
field. For more information, see "The Font Association Table" on page 4-89.4-6 Reserved. Should be set to 0. 7 This 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.8 This 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.9 This 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-11 Reserved. Should be set to 0. 12 Reserved. Should be set to 1. 13 This 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. 14 This 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. 15 Reserved. Should be set to 0.