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: Text /
Chapter 6 - Script Manager / Script Manager Reference
Routines


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 function GetScriptUtilityAddress and the procedure SetScriptUtilityAddress work with the script utilities routines. The function GetScriptQDPatchAddress and the procedure SetScriptQDPatchAddress work with patches of the QuickDraw routines StdText, StdTxMeas, and MeasureText, and the Font Manager routine FontMetrics.

For more information on how to use these calls, see the appendix "Built-in Script Support" in this book.

For GetScriptUtilityAddress and SetScriptUtilityAddress, these are the valid values for the selector parameter:
Script utilitySelector value
GetScriptVariable$000C
SetScriptVariable$000E
CharacterByteType$0010
CharacterType$0012
TransliterateText$0018
FindWordBreaks$001A
HiliteText$001C
FillParseTable$0022
FindScriptRun$0026
VisibleLength$0028
PixelToChar$002E
CharToPixel$0030
DrawJustified$0032
Measurejustified$0034
PortionLine$0036

For GetScriptQDPatchAddress and SetScriptQDPatchAddress, these are the valid values for the trapNum parameter:
QuickDraw patchtrapNum value
_StdText$A882
_StdTxMeas$A8ED
_MeasureText$A837
_FontMetrics$A835


Subtopics
GetScriptUtilityAddress
SetScriptUtilityAddress
GetScriptQDPatchAddress
SetScriptQDPatchAddress

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996