Text Markup Attributes

Attributed string keys used by Core Media.

Topics

Constants

kCMTextMarkupAttribute_ForegroundColorARGB

The foreground color for text.

kCMTextMarkupAttribute_BackgroundColorARGB

The background color for the shape holding the text.

kCMTextMarkupAttribute_CharacterBackgroundColorARGB

The background color behind individual text characters.

kCMTextMarkupAttribute_BoldStyle

Specifies a bold text style.

kCMTextMarkupAttribute_ItalicStyle

Specifies an italic text style.

kCMTextMarkupAttribute_UnderlineStyle

Specifies an underlined text style.

kCMTextMarkupAttribute_GenericFontFamilyName

The attribute holding a generic font family identifier.

kCMTextMarkupAttribute_BaseFontSizePercentageRelativeToVideoHeight

The base font size expressed as a percentage of the video height.

kCMTextMarkupAttribute_RelativeFontSize

The font size expressed as a percentage of the current default font size.

kCMTextMarkupAttribute_VerticalLayout

The kind of vertical layout of the text block.

kCMTextMarkupAttribute_Alignment

The alignment of text in the writing direction of the first line of text.

kCMTextMarkupAttribute_TextPositionPercentageRelativeToWritingDirection

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

kCMTextMarkupAttribute_OrthogonalLinePositionPercentageRelativeToWritingDirection

The placement of the block of text's first line specified as a percentage in the direction orthogonal to the writing direction.

kCMTextMarkupAttribute_WritingDirectionSizePercentage

The dimension (width or height) of the bounding box containing the text expressed as a percentage.

kCMTextMarkupAttribute_CharacterEdgeStyle

Specifies alternative shapes for edges of characters.