Returns a new font collection based on the given array of font descriptors.
SDKs
- iOS 3.2+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Text
Declaration
func CTFontCollectionCreateWithFontDescriptors(_ queryDescriptors: CFArray?, _ options: CFDictionary?) -> CTFont Collection
Parameters
descriptors
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.