Function

CTFontDescriptorCopyAttribute(_:_:)

Returns the value associated with an arbitrary attribute.

Declaration

func CTFontDescriptorCopyAttribute(_ descriptor: CTFontDescriptor, _ attribute: CFString) -> CFTypeRef?

Parameters

descriptor

The font descriptor.

attribute

The requested attribute.

Return Value

A retained reference to an arbitrary attribute, or NULL if the requested attribute is not present.

Discussion

Refer to Font Attributes for documentation explaining how each attribute is packaged as a CFType object.

See Also

Getting Attributes

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