---
title: xHeight
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uifont/xheight
---

# xHeight

The x-height of the font.

## Declaration

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

## Discussion

Discussion This value measures (in points) the height of the lowercase character “x”.

## See Also

### Getting Font Metrics

- [pointSize](uikit/uifont/pointsize.md)
- [ascender](uikit/uifont/ascender.md)
- [descender](uikit/uifont/descender.md)
- [leading](uikit/uifont/leading.md)
- [capHeight](uikit/uifont/capheight.md)
- [lineHeight](uikit/uifont/lineheight.md)
