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 3 - QuickDraw Text / QuickDraw Text Reference
Routines / Setting Text Characteristics


TextFont

The TextFont procedure sets the font of the current graphics port in which the text is
to be rendered.

PROCEDURE TextFont (font: Integer);
font
The font family ID.
DESCRIPTION
The TextFont procedure sets the value of the graphics port text font (txFont) field. The initial font family ID is 0, which represents the system font. The value that you specify for this field is either an integer or a constant. The range of integers currently defined are from 0 to 32767. Currently, negative font family IDs are not supported, although they may be supported in the future.

For more information about TextFont, see "Setting the Font" on page 3-20.

SPECIAL CONSIDERATIONS
The system font and application font have different font IDs and sizes on various script systems. However, the special designators 0 and 1 always map to the system font and the application font for the system script, respectively.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996