Contents

CTFontCopyAttribute(_:_:)

Returns the value associated with an arbitrary attribute of the given font.

Declaration

func CTFontCopyAttribute(_ font: CTFont, _ attribute: CFString) -> CFTypeRef?

Parameters

  • font:

    The font reference.

  • 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 the attribute definitions documentation for information as to how each attribute is packaged as a CFType.

See Also

Getting Font Data