Carbon


Script Attribute Constants

Header: Script.h

enum {
    smsfIntellCP = 0,
    smsfSingByte = 1,
    smsfNatCase = 2,
    smsfContext = 3,
    smsfNoForceFont = 4,
    smsfB0Digits = 5,
    smsfAutoInit = 6,
    smsfUnivExt = 7,
    smsfSynchUnstyledTE = 8,
    smsfForms = 13,
    smsfLigatures = 14,
    smsfReverse = 15,
    smfShowIcon = 31,
    smfDualCaret = 30,
    smfNameTagEnab = 29,
    smfUseAssocFontInfo = 28
};

Constant descriptions

smsfIntellCP

The script can support intelligent cut and paste (it uses spaces as word delimiters).

smsfSingByte

The script has only 1-byte characters.

smsfNatCase

The script has both uppercase and lowercase native characters.

smsfContext

The script is contextual.

smsfNoForceFont

The script does not support font forcing (ignores the font force flag).

smsfB0Digits

The script has alternate digits at $B0–$B9. Arabic and Hebrew, for example, have their native numeric forms at this location in their character sets.

smsfAutoInit

The script is initialized by the Script Manager. 1-byte simple script systems can set this bit to avoid having to initialize themselves.

smsfUnivExt

The script uses the WorldScript I extension.

smsfSynchUnstyledTE

The script synchronizes keyboard with font for monostyled TextEdit.

smsfForms

Use contextual forms if this bit is set; do not use them if it is cleared.

smsfLigatures

Use contextual ligatures if this bit is set; do not use them if it is cleared.

smsfReverse

Reverse right-to-left text to draw it in (left-to-right) display order if this bit is set; do not reorder text if this bit is cleared.

smfShowIcon
smfDualCaret
smfNameTagEnab
smfUseAssocFontInfo

These constants are available for examining attributes in the script flags word. Bits above 8 are nonstatic, meaning that they may change during program execution. (Note that the constant values represent bit numbers in the flags word, not masks.)


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)