Carbon


ScriptCodeRun

Header: TextCommon.h

struct ScriptCodeRun {
    ByteOffset offset; 
    ScriptCode script;
};
typedef ScriptCodeRun ConstScriptCodeRunPtr;

Field descriptions

offset

The beginning character position of a text run and its script code in the converted text.

script

The script code for the text that begins at the position specified.

To return the result of a multiple encoding conversion, the ConvertFromUnicodeToScriptCodeRun function uses a script code run structure.

The script code run structure uses an extended script code with values in the range 0–254, which are the text encoding base equivalents to Mac OS encodings. Values 0–32 correspond directly to traditional script codes. This allows a script code run to distinguish Icelandic, Turkish, Symbol, Zapf Dingbats, and so on.

A script code run structure is defined by the ScriptCodeRun data type.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)