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 (GrafPortorCGrafPort). 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
TextFontprocedure specifies the font to be used.- The
TextFaceprocedure specifies the glyph style.- The
TextModeprocedure specifies the transfer mode.- The
TextSizeprocedure specifies the font size.- The
CharExtraprocedure specifies the amount of pixels by which to widen or narrow each space character in a range of text.- The
SpaceExtraprocedure 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