Function

CTFontCollectionCreateCopyWithFontDescriptors(_:_:_:)

Returns a copy of the original collection augmented with the given new font descriptors.

Declaration

func CTFontCollectionCreateCopyWithFontDescriptors(_ original: CTFontCollection, _ queryDescriptors: CFArray?, _ options: CFDictionary?) -> CTFontCollection

Parameters

original

The original font collection reference.

descriptors

An array of font descriptors to augment those of the original collection.

options

The options dictionary. For possible values, see Constants.

Return Value

A copy of the original font collection augmented by the new font descriptors and options.

Discussion

The new font descriptors are merged with the existing descriptors to create a single set.