Returns an array of font descriptors matching the logical descriptors for the given font family and options.
SDK
- macOS 10.7+
Framework
- App
Kit
Declaration
func matchingDescriptors(forFamily family: String, options: [NSFont Collection Matching Option Key : NSNumber]? = nil) -> [NSFont Descriptor]?
Parameters
family
The font family whose descriptors are matched.
options
A dictionary containing any combination of the Matching Descriptors Options keys or
nil
.
Return Value
The matching
for the given family and options.