Important: The information in this document is obsolete and should not be used for new development.
Replacing a Script System's Default Routines
The four Script Manager routines described in this section allow you to access or replace the text-manipulation and text-display routines in WorldScript I, the system extension for 1-byte complex script systems. The functionGetScriptUtilityAddressand the procedureSetScriptUtilityAddresswork with the script utilities routines. The functionGetScriptQDPatchAddressand the procedureSetScriptQDPatchAddresswork with patches of the QuickDraw routinesStdText,StdTxMeas, andMeasureText, and the Font Manager routineFontMetrics.For more information on how to use these calls, see the appendix "Built-in Script Support" in this book.
For
GetScriptUtilityAddressandSetScriptUtilityAddress, these are the valid values for theselectorparameter:For
GetScriptQDPatchAddressandSetScriptQDPatchAddress, these are the valid values for thetrapNumparameter:
QuickDraw patch trapNum value _StdText $A882 _StdTxMeas $A8ED _MeasureText $A837 _FontMetrics$A835
Subtopics
- GetScriptUtilityAddress
- SetScriptUtilityAddress
- GetScriptQDPatchAddress
- SetScriptQDPatchAddress