Contents

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.0 is 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 NULL is 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