Contents

CTFontGetXHeight(_:)

Returns the x-height metric of the given font.

Declaration

func CTFontGetXHeight(_ font: CTFont) -> CGFloat

Parameters

  • font:

    The font reference.

Return Value

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

See Also

Getting Font Metrics