Function

CMTextFormatDescriptionGetJustification

Returns horizontal and vertical justification.

Declaration

OSStatus CMTextFormatDescriptionGetJustification(CMFormatDescriptionRef desc, CMTextJustificationValue *horizontaJustificationlOut, CMTextJustificationValue *verticalJustificationOut);

Parameters

desc

CMFormatDescription being interrogated.

outHorizontalJust

Horizontal justification mode. May be NULL.

outVerticalJust

Vertical justification mode. May be NULL.

Return Value

A result code. Returns noErr if successful.

Discussion

For possible values see CMTextJustificationValue.

See Also

Text-Specific Functions

CMTextFormatDescriptionGetDefaultStyle

Returns the default style.

CMTextFormatDescriptionGetDefaultTextBox

Returns the default text box.

CMTextFormatDescriptionGetDisplayFlags

Returns the displayFlags.

CMTextFormatDescriptionGetFontName

Returns the font name for a local font ID.

CMTextFormatDescriptionCopyAsBigEndianTextDescriptionBlockBuffer

Copies the contents of a CMTextFormatDescription to a CMBlockBuffer in big-endian byte ordering.

CMTextFormatDescriptionCreateFromBigEndianTextDescriptionBlockBuffer

Creates a CMTextFormatDescription from a big-endian TextDescription data structure in a CMBlockBuffer.

CMTextFormatDescriptionCreateFromBigEndianTextDescriptionData

Creates a CMTextFormatDescription from a big-endian TextDescription data structure.

CMSwapBigEndianTextDescriptionToHost

Converts a TextDescription data structure from big-endian to host-endian in place.

CMSwapHostEndianTextDescriptionToBig

Converts a TextDescription data structure from host-endian to big-endian in place.