- Inside Macintosh: Text /
- Chapter 3 - QuickDraw Text / QuickDraw Text Reference
- Routines
Setting Text Characteristics
The routines in this section set values in the text-related fields of the current graphics port (GrafPort or CGrafPort). You also use these routines to set text characteristics that vary from style run to style run. You use these routines to set the graphics port fields to values equivalent to a new style run's text characteristics before you call other QuickDraw routines to measure and draw the text.
- The
TextFont procedure specifies the font to be used.
- The
TextFace procedure specifies the glyph style.
- The
TextMode procedure specifies the transfer mode.
- The
TextSize procedure specifies the font size.
- The
CharExtra procedure specifies the amount of pixels by which to widen or narrow each space character in a range of text.
- The
SpaceExtra procedure specifies the amount of pixels by which to widen or narrow each glyph other than the space characters in a range of text (CharExtra).
- Note
- To ensure future compatibility and benefit from any future enhancements, always use these routines to modify the text fields of the graphics port record, rather than directly change the field values.
Subtopics
- TextFont
-
- TextFace
-
- TextMode
-
- TextSize
-
- SpaceExtra
-
- CharExtra
-
- GetFontInfo
-
© Apple Computer, Inc.
6 JUL 1996