---
title: xHeight
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsfont/xheight
---

# xHeight

The x-height of the font.

## Declaration

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

## See Also

### Getting the Font Metrics

- [ascender](appkit/nsfont/ascender.md)
- [descender](appkit/nsfont/descender.md)
- [capHeight](appkit/nsfont/capheight.md)
- [leading](appkit/nsfont/leading.md)
