Returns the scaled bounding box of the given font.
SDKs
- iOS 3.2+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Text
Declaration
Parameters
font
The font reference.
Return Value
The design bounding box of the font, which is the rectangle defined by x
, y
, x
, and y
values for the font. Returns CGRect
on error.