Contents

CTFontDescriptorCreateCopyWithFeature(_:_:_:)

Copies a font descriptor with new feature settings.

Declaration

func CTFontDescriptorCreateCopyWithFeature(_ original: CTFontDescriptor, _ featureTypeIdentifier: CFNumber, _ featureSelectorIdentifier: CFNumber) -> CTFontDescriptor

Parameters

  • original:

    The original font descriptor.

  • featureTypeIdentifier:

    The feature type identifier.

  • featureSelectorIdentifier:

    The feature selector identifier.

Return Value

A copy of the original font descriptor modified with the given feature settings.

Discussion

This is a convenience method to toggle more easily the state of individual features.

See Also

Creating Font Descriptors