Important: The information in this document is obsolete and should not be used for new development.
Setting Text Characteristics
The routines in this section set values in the text-related fields of the current graphics port (GrafPort
orCGrafPort
). 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