Contents

CTFontGetAscent(_:)

Returns the scaled font-ascent metric of the given font.

Declaration

func CTFontGetAscent(_ font: CTFont) -> CGFloat

Parameters

  • font:

    The font reference.

Return Value

The font-ascent metric scaled according to the point size and matrix of the font reference.

See Also

Getting Font Metrics