Contents

CTFontGetCapHeight(_:)

Returns the cap-height metric of the given font.

Declaration

func CTFontGetCapHeight(_ font: CTFont) -> CGFloat

Parameters

  • font:

    The font reference.

Return Value

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

See Also

Getting Font Metrics