Important: The information in this document is obsolete and should not be used for new development.
StdTxtMeas
TheStdTxtMeas
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
TheStdTxtMeas
function returns the width of the text stored in the arbitrary structure in memory specified bytextAddr
, starting with the first byte and continuing forbyteCount
bytes. Thenumer
anddenom
parameters specify the scaling as in theStdText
procedure; note thatStdTxtMeas
may change them.SPECIAL CONSIDERATIONS
TheStdTxtMeas
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.