Important: The information in this document is obsolete and should not be used for new development.
Low-Level QuickDraw Text Routines
The QuickDraw text routines use two bottleneck routines extensively--one to draw text, and one to measure it. This section describes theStdTextprocedure that is used to draw text and theStdTxMeasfunction that is used to measure text. Although the high-level QuickDraw text routines provide most of the functionality needed to measure and draw text under most circumstances, you can call these low-level routines directly when necessary. However, if you need to call eitherStdTextorStdTxMeasdirectly, you must first check the graphics portgrafProcfield to determine whether the bottleneck routines have been customized, and if so, you must call the customized routine instead of the standard one. The bottleneck routines are always customized
for printing.If the
grafProcsfield containsNIL, the standard bottleneck routines have not been customized. If thegrafProcsfield contains a pointer, the standard bottleneck routines have been replaced by customized ones. A pointer (of typeQDProcsPtr) in thegrafProcfield points to aQDProcrecord. This record contains fields that point to the bottleneck routine to be used for a specific drawing function. If the standard bottleneck routine has been customized, your application needs to use the customized routine indicated by theQDProcsrecord field.The QuickDraw standard low-level bottleneck routines work properly for all script systems. For more information about replacing or customizing the bottleneck routines, see "Customizing QuickDraw's Text Handling" on page 3-58 and the QuickDraw chapters in Inside Macintosh: Imaging.
Subtopics
- StdText
- StdTxMeas