Alignment Type Constants

Values for the kCMTextMarkupAttribute_Alignment attribute indicating the alignment of text within its writing direction.

Topics

Constants

let kCMTextMarkupAlignmentType_Start: CFString

The text is visually aligned at its starting side.

let kCMTextMarkupAlignmentType_Middle: CFString

The text is visually center-aligned (that is, aligned between its starting and ending sides).

let kCMTextMarkupAlignmentType_End: CFString

The text is visually aligned at its ending side.

let kCMTextMarkupAlignmentType_Left: CFString

For horizontally written text, the text alignment is always visually left-aligned (that is, left-to-right and right-to-left are treated uniformly). For vertical text, this is equivalent to kCMTextMarkupAlignmentType_Start.

let kCMTextMarkupAlignmentType_Right: CFString

For horizontally written text, the text alignment is always visually right-aligned (that is, left-to-right and right-to-left are treated uniformly). For vertical text, this is equivalent to kCMTextMarkupAlignmentType_End.