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

# ascender

The top y-coordinate, offset from the baseline, of the font’s longest ascender.

## Declaration

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

## Discussion

Discussion The value of this property is the distance of the longest ascender’s top y-coordinate from the baseline, measured in points.

## See Also

### Getting the Font Metrics

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