Contents

CTFontDescriptorCreateWithAttributes(_:)

Creates a new font descriptor reference from a dictionary of attributes.

Declaration

func CTFontDescriptorCreateWithAttributes(_ attributes: CFDictionary) -> CTFontDescriptor

Parameters

  • attributes:

    A dictionary containing arbitrary attributes.

Return Value

A new font descriptor with the attributes specified.

Discussion

The provided attribute dictionary can contain arbitrary attributes that are preserved; however, unrecognized attributes are ignored on font creation and may not be preserved over the round trip from descriptor to font and back to descriptor.

See Also

Creating Font Descriptors