Contents

kCMTextMarkupAttribute_TextPositionPercentageRelativeToWritingDirection

The placement of the block of text as a percentage in the writing direction.

Declaration

let kCMTextMarkupAttribute_TextPositionPercentageRelativeToWritingDirection: CFString

Discussion

This attribute’s value must be a non-negative CFNumber that expresses the position of the center of the text in the writing direction as a percentage of the video dimensions in the writing direction. For horizontal cues, this is the horizontal position. For vertical, it’s the vertical position. The system calculates the percentage from the edge of the frame where the text begins (for left-to-right English, it’s the left edge).

If you use this attribute, apply it to the entire attributed string.

See Also

Layout