Function

CTFontCollectionCreateWithFontDescriptors

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

Declaration

CTFontCollectionRef CTFontCollectionCreateWithFontDescriptors(CFArrayRef queryDescriptors, CFDictionaryRef options);

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.

See Also

Creating Font Collections

CTFontCollectionCreateFromAvailableFonts

Returns a new font collection containing all available fonts.

CTFontCollectionCreateCopyWithFontDescriptors

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