Global Variable


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


let kCMTextMarkupAttribute_TextPositionPercentageRelativeToWritingDirection: CFString


Value must be a non-negative CFNumber. This is a number expressing 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 is the vertical position. The percentage is calculated from the edge of the frame where the text begins (so for left-to-right English, it is the left edge).

If used, this attribute must be applied to the entire attributed string.