Instance Property

filteredLanguagesPredicate

A predicate to filter fonts based on the languages they support.

Declaration

@property(copy, nonatomic) NSPredicate *filteredLanguagesPredicate;

Discussion

By default, the font picker shows all available fonts, regardless of the languages they support. You may prefer to offer only fonts that support certain languages. To restrict the list, set this property to an NSPredicate defining the logic the font picker should apply to the fonts' supported languages metadata.

Use language specifiers in the same format CFLocale uses to specify languages in a filter predicate. You can use filterPredicateForFilteredLanguages: to construct a simple predicate that excludes fonts which don’t support any of a collection of languages you specify.

See Also

Filtering Available Fonts

includeFaces

A Boolean value that determines whether the font picker should allow the user to select from font faces, or just font families.

filteredTraits

A predicate to filter fonts based on their traits, like bold, italic, or monospace.

+ filterPredicateForFilteredLanguages:

Creates a font picker filter based on language support.