CTFontCreateUIFontForLanguage(_:_:_:)
Returns the special user-interface font for the given language and user-interface type.
Declaration
func CTFontCreateUIFontForLanguage(_ uiType: CTFontUIFontType, _ size: CGFloat, _ language: CFString?) -> CTFont?Parameters
- uiType:
A constant specifying the intended user-interface use for the requested font reference. See Enumerations for possible values.
- size:
The point size for the font reference. If
0.0is specified, the default size for the requested user-interface type is used. - language:
Language specifier string to select a font for a particular localization. If
NULLis specified, the current system language is used. The format of the language identifier should conform to the RFC 3066bis standard.
Return Value
The correct font for various user-interface uses.
Discussion
The only required parameter is the uiType selector; the other parameters have default values.
See Also
Creating Fonts
CTFontCreateWithName(_:_:_:)CTFontCreateWithNameAndOptions(_:_:_:_:)CTFontCreateWithFontDescriptor(_:_:_:)CTFontCreateWithFontDescriptorAndOptions(_:_:_:_:)CTFontCreateCopyWithAttributes(_:_:_:_:)CTFontCreateCopyWithSymbolicTraits(_:_:_:_:_:)CTFontCreateCopyWithFamily(_:_:_:_:)CTFontCreateForString(_:_:_:)CTFontCreateForStringWithLanguage(_:_:_:_:)