Function

CMTextFormatDescriptionGetDefaultStyle(_:localFontIDOut:boldOut:italicOut:underlineOut:fontSizeOut:colorComponentsOut:)

Returns the default style.

Declaration

func CMTextFormatDescriptionGetDefaultStyle(_ desc: CMFormatDescription, localFontIDOut: UnsafeMutablePointer<UInt16>?, boldOut: UnsafeMutablePointer<DarwinBoolean>?, italicOut: UnsafeMutablePointer<DarwinBoolean>?, underlineOut: UnsafeMutablePointer<DarwinBoolean>?, fontSizeOut: UnsafeMutablePointer<CGFloat>?, colorComponentsOut: UnsafeMutablePointer<CGFloat>?) -> OSStatus

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

func CMSwapBigEndianTextDescriptionToHost(UnsafeMutablePointer<UInt8>, Int) -> OSStatus

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

func CMSwapHostEndianTextDescriptionToBig(UnsafeMutablePointer<UInt8>, Int) -> OSStatus

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

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