Type Alias

UIFontTextStyle

Constants that describe the preferred styles to use for fonts.

Declaration

typedef NSString *UIFontTextStyle;

Discussion

Pass these constants to the preferredFontForTextStyle: method of UIFont or the the preferredFontDescriptorWithTextStyle: method of UIFontDescriptor to retrieve the corresponding font information.

Topics

Type Properties

UIFontTextStyleBody

The font used for body text.

UIFontTextStyleCallout

The font used for callouts.

UIFontTextStyleCaption1

The font used for standard captions.

UIFontTextStyleCaption2

The font used for alternate captions.

UIFontTextStyleFootnote

The font used in footnotes.

UIFontTextStyleHeadline

The font used for headings.

UIFontTextStyleSubheadline

The font used for subheadings.

UIFontTextStyleLargeTitle

The font style for large titles.

UIFontTextStyleTitle1

The font used for first level hierarchical headings.

UIFontTextStyleTitle2

The font used for second level hierarchical headings.

UIFontTextStyleTitle3

The font used for third level hierarchical headings.

See Also

Creating a Font Metrics Object

- initForTextStyle:

Creates a font metrics object for the specified text style.

+ metricsForTextStyle:

Creates and returns a font metrics object for the specified text style.

defaultMetrics

The default font metrics object for content.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software