Type Property

traitTightLeading

The font uses a leading value that’s less than the default.

Declaration

static var traitTightLeading: UIFontDescriptor.SymbolicTraits { get }

Discussion

For fonts that you create using UIFont.TextStyle, tight leading subtracts 2 points from the current leading value.

See Also

Font Traits

static var traitExpanded: UIFontDescriptor.SymbolicTraits

The font’s characters have an expanded width.

static var traitCondensed: UIFontDescriptor.SymbolicTraits

The font’s characters have a condensed width.

static var traitMonoSpace: UIFontDescriptor.SymbolicTraits

The font’s characters all have the same width.

static var traitVertical: UIFontDescriptor.SymbolicTraits

The font uses vertical glyph variants and metrics.

static var traitUIOptimized: UIFontDescriptor.SymbolicTraits

The font synthesizes appropriate attributes for user interface rendering, such as in control titles, if necessary.

static var traitLooseLeading: UIFontDescriptor.SymbolicTraits

The font uses a leading value that’s greater than the default.

static var classMask: UIFontDescriptor.SymbolicTraits

The font family class mask that you use to access font descriptor values.

static var classOldStyleSerifs: UIFontDescriptor.SymbolicTraits

The font’s characters include serifs, and reflect the Latin printing style of the 15th to 17th centuries.

static var classTransitionalSerifs: UIFontDescriptor.SymbolicTraits

The font’s characters include serifs, and reflect the Latin printing style of the 18th to 19th centuries.

static var classModernSerifs: UIFontDescriptor.SymbolicTraits

The font’s characters include serifs, and reflect the Latin printing style of the 20th century.

static var classClarendonSerifs: UIFontDescriptor.SymbolicTraits

The font’s characters include variations of old style and transitional serifs.

static var classSlabSerifs: UIFontDescriptor.SymbolicTraits

The font’s characters use square transitions, without brackets, between strokes and serifs.

static var classFreeformSerifs: UIFontDescriptor.SymbolicTraits

The font’s characters include serifs, and don’t generally fit within other serif design classifications.

static var classSansSerif: UIFontDescriptor.SymbolicTraits

The font’s characters don’t have serifs.

static var classOrnamentals: UIFontDescriptor.SymbolicTraits

The font’s characters use highly decorated or stylized character shapes.

static var classScripts: UIFontDescriptor.SymbolicTraits

The font’s characters simulate handwriting.

static var classSymbolic: UIFontDescriptor.SymbolicTraits

The font’s characters consist mainly of symbols rather than letters and numbers.