Function

CMTextFormatDescriptionGetDefaultStyle

Returns the default style.

Declaration

OSStatus CMTextFormatDescriptionGetDefaultStyle(CMFormatDescriptionRef desc, uint16_t *localFontIDOut, Boolean *boldOut, Boolean *italicOut, Boolean *underlineOut, CGFloat *fontSizeOut, CGFloat *colorComponentsOut);

Parameters

desc

CMFormatDescription being interrogated.

outLocalFontID

Font number, local to the FormatDescription. May be NULL.

outBold

Returned true if style includes Bold. May be NULL.

outItalic

On output, returns true if style includes Italic. May be NULL.

outUnderline

On output, returns true if style includes Underline. May be NULL.

outFontSize

FontSize in points. May be NULL.

CGFloat outColorComponents[4]

Color components in order red, green, blue, and alpha. May be NULL.

Return Value

A result code. Returns noErr if Successful.

See Also

Text-Specific Functions

CMTextFormatDescriptionGetDefaultTextBox

Returns the default text box.

CMTextFormatDescriptionGetDisplayFlags

Returns the displayFlags.

CMTextFormatDescriptionGetFontName

Returns the font name for a local font ID.

CMTextFormatDescriptionGetJustification

Returns horizontal and vertical justification.

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.