Contents

CTFontDescriptorCreateCopyWithAttributes(_:_:)

Creates a copy of the original font descriptor with new attributes.

Declaration

func CTFontDescriptorCreateCopyWithAttributes(_ original: CTFontDescriptor, _ attributes: CFDictionary) -> CTFontDescriptor

Parameters

  • original:

    The original font descriptor.

  • attributes:

    A dictionary containing arbitrary attributes.

Return Value

A new copy of the original font descriptor with attributes augmented by those specified. If there are conflicts between attributes, the new attributes replace existing ones.

See Also

Creating Font Descriptors