Returns the cap height of a font.
SDKs
- iOS 2.0+
- macOS 10.5+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Graphics
Declaration
var capHeight: Int32 { get }
Parameters
font
A font object.
Return Value
The cap height of the font.
Discussion
The cap height is the distance above the baseline of the top of flat capital letters of glyphs in a font. The value is specified in glyph space units.