matchingDescriptors(forFamily:options:)
Returns an array of font descriptors matching the logical descriptors for the given font family and options.
Declaration
func matchingDescriptors(forFamily family: String, options: [NSFontCollectionMatchingOptionKey : NSNumber]? = nil) -> [NSFontDescriptor]?Parameters
- family:
The font family whose descriptors are matched.
- options:
A dictionary containing any combination of the
Matching Descriptors Optionskeys ornil.
Return Value
The matchingDescriptors for the given family and options.