Instance Method

matchingDescriptorsForFamily:

Returns an array of font descriptors matching the logical descriptors for the given font family.

Declaration

- (NSArray<NSFontDescriptor *> *)matchingDescriptorsForFamily:(NSString *)family;

Parameters

family

The font family whose descriptors are matched.

Return Value

The matchingDescriptors for the given family.

See Also

Getting the Font Descriptors

matchingDescriptors

An array of font descriptors matching the logical descriptors.

- matchingDescriptorsForFamily:options:

Returns an array of font descriptors matching the logical descriptors for the given font family and options.

- matchingDescriptorsWithOptions:

Returns an array of font descriptors matching the logical descriptors with the given options.

NSFontCollectionMatchingOptionKey

These constants are used by the matchingDescriptorsWithOptions: and matchingDescriptorsForFamily:options: options dictionary parameters.

queryDescriptors

An array of font descriptors whose matching results produce the collection’s matching descriptors.

exclusionDescriptors

A list of query font descriptors whose matching results are excluded from the list of matching descriptors.