Instance Property

ascender

The top y-coordinate, offset from the baseline, of the font’s longest ascender.

Declaration

var ascender: CGFloat { get }

Discussion

The value of this property is the distance of the longest ascender’s top y-coordinate from the baseline, measured in points.

See Also

Getting the Font Metrics

var descender: CGFloat

The bottom y-coordinate, offset from the baseline, of the font’s longest descender.

var capHeight: CGFloat

The cap height of the font.

var leading: CGFloat

The leading value of the font.

var xHeight: CGFloat

The x-height of the font.