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


TextFace

The TextFace procedure sets the style of the font in which the text is to be drawn in the current graphics port.

PROCEDURE TextFace (face: Style);
face
The style for text to be drawn in the current graphics port.
DESCRIPTION
The TextFace procedure sets the value for the style of the font in the text face (txFace) field of the current graphics port. The Style data type allows you to specify a set of one or more of the following predefined constants: bold, italic, underline, outline, shadow, condense, and extend. In Pascal, you specify the constants within square brackets. For example:

TextFace([bold]);          {bold}
TextFace([bold,italic]);   {bold and italic}
The style is set to the empty set ([]) by default, which specifies plain. For more information, see "Modifying the Text Style" on page 3-21.

ASSEMBLY-LANGUAGE INFORMATION
In assembly language, the style set is stored as a word whose low-order byte contains bits representing the style. The bit numbers are specified by the following global constants.
ConstantBitMeaning
bold0Bold style
italicBit1Italic style
ulineBit2Underlined style
outlineBit3Outlined style
shadowBit4Shadowed style
condense5Condensed style
extendBit6Extended style

If all bits are 0, the low-order byte represents the plain glyph style.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996