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 / Low-Level QuickDraw Text Routines


StdText

The StdText procedure is the standard low-level routine for drawing text. It draws text from an arbitrary structure in memory specified by textBuf, starting from the first byte and continuing for count bytes.

PROCEDURE StdText (count: Integer; textBuf: Ptr;
                   numer, denom: Point);
count
The number of bytes to be counted.
textBuf
A pointer to the beginning of the text in memory.
numer
A point giving the numerator for the horizontal and vertical
scaling factors.
denom
A point giving the denominator for the horizontal and vertical
scaling factors.
DESCRIPTION
The StdText procedure is a QuickDraw bottleneck routine that the QuickDraw text drawing routines use extensively. However, you can call the StdText routine directly to draw text that is scaled or unscaled. For more information about the scaling factors, see "The numer and denom Parameters" on page 3-64.

SPECIAL CONSIDERATIONS
The StdText procedure gives the correct results for all script systems. The count parameter is the number of bytes of the text to be drawn, not characters. When specifying this value, consider that 2-byte script systems also include characters consisting of only one byte.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996