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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software