---
title: capHeight
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsfont/capheight
---

# capHeight

The cap height of the font.

## Declaration

```swift
var capHeight: CGFloat { get }
```

## See Also

### Getting the Font Metrics

- [ascender](appkit/nsfont/ascender.md)
- [descender](appkit/nsfont/descender.md)
- [leading](appkit/nsfont/leading.md)
- [xHeight](appkit/nsfont/xheight.md)
