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: Imaging With QuickDraw /
Chapter 3 - QuickDraw Drawing / QuickDraw Drawing Reference
Routines / Customizing QuickDraw Operations


StdTxtMeas

The StdTxtMeas function is QuickDraw's standard low-level routine for measuring text width.

FUNCTION StdTxtMeas (byteCount:\xDDInteger; textAddr:\xDDPtr; 
                    VAR numer,denom:\xDDPoint; 
                    VAR info:\xDDFontInfo):\xDDInteger;
byteCount
The number of text bytes to measure.
textAddr
A pointer to the memory structure containing the text.
numer
Scaling numerator.
denom
Scaling denominator.
info
A FontInfo record.
DESCRIPTION
The StdTxtMeas function returns the width of the text stored in the arbitrary structure in memory specified by textAddr, starting with the first byte and continuing for byteCount bytes. The numer and denom parameters specify the scaling as in the StdText procedure; note that StdTxtMeas may change them.

SPECIAL CONSIDERATIONS
The StdTxtMeas function may move or purge memory blocks in the application heap. Your application should not call this function at interrupt time.

SEE ALSO
QuickDraw's text-drawing capabilities are described in the chapter "QuickDraw Text" in Inside Macintosh: Text.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996