StdTxtMeas
The StdTxtMeas function is QuickDraw's standard low-level routine for measuring text width.
FUNCTION StdTxtMeas (byteCount:�Integer; textAddr:�Ptr;
VAR numer,denom:�Point;
VAR info:�FontInfo):�Integer;
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.