Carbon


FMInput

Header: Fonts.h

struct FMInput {
    SInt16 family; 
    SInt16 size; 
    Style face; 
    Boolean needBits; 
    SInt16 device; 
    Point numer; 
    Point denom;
};

Field descriptions

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 functions 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. 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. 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.

The font input structure, of data type FMInput, is used by QuickDraw to request a font from the Font Manager. You can also use this data type to request a font with the FMSwapFont function.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)