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


Measuring Text

Laying out text to determine how much of it fits on the display line entails measuring the text. QuickDraw provides five high-level routines that let you do this:

These routines measure text in the font, style, and size of the current graphics port. Consequently, you need to call them once for each individual style run in any line of text that contains multiple style runs.


Subtopics
CharWidth
StringWidth
TextWidth
MeasureText
MeasureJustified

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996