Carbon


Text Styling Constants

Header: TextEdit.h

enum {
    doFont = 1,
    doFace = 2,
    doSize = 4,
    doColor = 8,
    doAll = 15,
    addSize = 16,
    doToggle = 32
};

Constant descriptions

doFont

Sets the font family ID

doFace

Sets the character style

doSize

Sets the type size

doColor

Sets the color

doAll

Sets all attributes

addSize

Increases or decreases the current type size

doToggle

Modifies the mode

You can use these constants (singly or in combination) to specify character attributes, through the mode parameter of the TEContinuousStyle, TESetStyle, and TEReplaceStyle functions.


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