---
title: kCMTextMarkupAttribute_TextPositionPercentageRelativeToWritingDirection
framework: coremedia
role: symbol
role_heading: Global Variable
path: coremedia/kcmtextmarkupattribute_textpositionpercentagerelativetowritingdirection
---

# kCMTextMarkupAttribute_TextPositionPercentageRelativeToWritingDirection

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

## Declaration

```swift
let kCMTextMarkupAttribute_TextPositionPercentageRelativeToWritingDirection: CFString
```

## Discussion

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

- [kCMTextMarkupAttribute_VerticalLayout](coremedia/kcmtextmarkupattribute_verticallayout.md)
- [kCMTextMarkupAttribute_Alignment](coremedia/kcmtextmarkupattribute_alignment.md)
- [kCMTextMarkupAttribute_OrthogonalLinePositionPercentageRelativeToWritingDirection](coremedia/kcmtextmarkupattribute_orthogonallinepositionpercentagerelativetowritingdirection.md)
- [kCMTextMarkupAttribute_WritingDirectionSizePercentage](coremedia/kcmtextmarkupattribute_writingdirectionsizepercentage.md)
