Contents

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 Options keys or nil.

Return Value

The matchingDescriptors for the given family and options.

See Also

Getting the Font Descriptors