Contents

UIFont

An object that provides access to the font’s characteristics.

Declaration

class UIFont

Mentioned in

Overview

Use UIFont to access your font’s characteristics within your app. It also provides the system with access to the glyph information, used during layout. Font objects are immutable, so it’s safe to use them from multiple threads in your app.

In Objective-C, don’t create font objects using the alloc and init methods. Instead, use class methods of UIFont, such as preferredFont(forTextStyle:), to look up and retrieve the desired font object. These methods check for an existing font object with the specified characteristics and return it if it exists. Otherwise, they create a new font object based on the desired font characteristics.

Topics

Creating Fonts

Creating System Fonts

Getting the Available Font Names

Getting Font Name Attributes

Getting Font Metrics

Getting System Font Information

Getting Font Descriptors

Initializers

See Also

Fonts