---
title: "CTFontCreateUIFontForLanguage(_:_:_:)"
framework: coretext
role: symbol
role_heading: Function
path: "coretext/ctfontcreateuifontforlanguage(_:_:_:)"
---

# CTFontCreateUIFontForLanguage(_:_:_:)

Returns the special user-interface font for the given language and user-interface type.

## Declaration

```swift
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

Return Value The correct font for various user-interface uses.

## Discussion

Discussion The only required parameter is the uiType selector; the other parameters have default values.

## See Also

### Creating Fonts

- [CTFontCreateWithName(_:_:_:)](coretext/ctfontcreatewithname(_:_:_:).md)
- [CTFontCreateWithNameAndOptions(_:_:_:_:)](coretext/ctfontcreatewithnameandoptions(_:_:_:_:).md)
- [CTFontCreateWithFontDescriptor(_:_:_:)](coretext/ctfontcreatewithfontdescriptor(_:_:_:).md)
- [CTFontCreateWithFontDescriptorAndOptions(_:_:_:_:)](coretext/ctfontcreatewithfontdescriptorandoptions(_:_:_:_:).md)
- [CTFontCreateCopyWithAttributes(_:_:_:_:)](coretext/ctfontcreatecopywithattributes(_:_:_:_:).md)
- [CTFontCreateCopyWithSymbolicTraits(_:_:_:_:_:)](coretext/ctfontcreatecopywithsymbolictraits(_:_:_:_:_:).md)
- [CTFontCreateCopyWithFamily(_:_:_:_:)](coretext/ctfontcreatecopywithfamily(_:_:_:_:).md)
- [CTFontCreateForString(_:_:_:)](coretext/ctfontcreateforstring(_:_:_:).md)
- [CTFontCreateForStringWithLanguage(_:_:_:_:)](coretext/ctfontcreateforstringwithlanguage(_:_:_:_:).md)
