Returns all the fonts available in the system whose specified attributes match those of the receiver.
- iOS 7.0+
- tvOS 9.0+
- watchOS 2.0+
Keys that must be identical to be matched. Can be
The matching font descriptors. If the attribute value specified does not exist in the input dictionary or if there is no font that matches the given mandatory key values, an empty array is returned.
For example, suppose there are two versions of a given font installed that differ in the number of glyphs covered (the new version has more glyphs). If you explicitly specify
UIFont as the only mandatory key, then a font descriptor that specifies a font name and character set by default matches both versions, because the character set attribute is not used for matching. If you specify that font name and character set keys are mandatory, the returned array contains only the font that matches both keys.