Contents

CTFontGetBoundingBox(_:)

Returns the scaled bounding box of the given font.

Declaration

func CTFontGetBoundingBox(_ font: CTFont) -> CGRect

Parameters

  • font:

    The font reference.

Return Value

The design bounding box of the font, which is the rectangle defined by xMin, yMin, xMax, and yMax values for the font. Returns CGRectNull on error.

See Also

Getting Font Metrics