Carbon


Text Box Options Masks

Header: MacTextEditor.h

Specifies how text should be displayed in a Unicode text box.

enum {
    kTXNSetFlushnessMask = 1,
    kTXNSetJustificationMask = 2,
    kTXNUseFontFallBackMask = 4,
    kTXNRotateTextMask = 8,
    kTXNUseVerticalTextMask = 16,
    kTXNDontUpdateBoxRectMask = 32,
    kTXNDontDrawTextMask = 64
};

Constant descriptions

kTXNSetFlushnessMask

Display text flush according to the line direction.

kTXNSetJustificationMask

Show text fully justified.

kTXNUseFontFallBackMask

Enables ATSUI transient font matching that searches for a font with that has a matching character.

kTXNRotateTextMask

Display text rotated clockwise.

kTXNUseVerticalTextMask

Display text vertically from top to bottom.

kTXNDontUpdateBoxRectMask

If you don’t use this option then the right side of the text box changes to accommodate the longest line for text. For vertical text, the bottom of the text box remains unchanged. For horizontal text the bottom of the text box is set to accommodate the bottom of the last line.

kTXNDontDrawTextMask

Return the size of the text, but do not display the text.


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