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 Input Record

The font input record, of data type FMInput, is used by QuickDraw to request a font from the Font Manager, as described in the section "How QuickDraw Requests a Font" on page 4-16. You can also use this data type to request a font with the FMSwapFont function, which is described on page 4-60.

TYPE FMInput =
PACKED RECORD
   family:     Integer;    {font family ID}
   size:       Integer;    {requested point size}
   face:       Style;      {requested font style}
   needBits:   Boolean;    {if bitmaps need to be constructed}
   device:     Integer;    {device driver ID}
   numer:      Point;      {scaling factor numerators}
   denom:      Point;      {scaling factor denominators}
END;
Field Description
family
The font family ID of the requested font.
size
The point size of the requested font.
face
The requested font style. The defined QuickDraw styles are bold, italic, underline, outline, shadow, condense, and extend.
needBits
Indicates whether QuickDraw draws the glyphs. If QuickDraw does not draw the glyphs, as is the case for measurement routines such as MeasureText, then the glyph bitmaps do not have to be read or constructed. If QuickDraw draws the glyphs and the font is contained in a bitmapped font resource, all of the information describing the font, including the bit image, is read into memory.
device
The high-order byte contains the device driver reference number. The low-order byte is reserved.
numer
The numerators of the vertical and horizontal scaling factors. (For more information about font scaling, see "How the Font Manager Scales Fonts" on page 4-19.) The numer field is of type Point and contains two integers: the first is the numerator of the ratio for vertical scaling and the second is the numerator of the ratio for horizontal scaling.
denom
The denominators of the vertical and horizontal scaling factors. (For more information about font scaling, see "How the Font Manager Scales Fonts" on page 4-19.) The denom field is of type Point and contains two integers: the first is the denominator of the ratio for vertical scaling and the second is the denominator of the ratio for horizontal scaling.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996