Contents

CTFontCollectionCreateWithFontDescriptors(_:_:)

Returns a new font collection based on the given array of font descriptors.

Declaration

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

Parameters

  • queryDescriptors:

    An array of font descriptors.

  • options:

    The options dictionary. For possible values, see Constants.

Return Value

A new font collection based on the provided font descriptors.

Discussion

The contents of the returned collection are defined by matching the provided descriptors against all available font descriptors.

See Also

Creating Font Collections