---
title: ascent
framework: coregraphics
role: symbol
role_heading: Instance Property
path: coregraphics/cgfont/ascent
---

# ascent

Returns the ascent of a font.

## Declaration

```swift
var ascent: Int32 { get }
```

## Discussion

Discussion The ascent is the maximum distance above the baseline of glyphs in a font. The value is specified in glyph space  units.

## See Also

### Examining Font Metrics

- [capHeight](coregraphics/cgfont/capheight.md)
- [descent](coregraphics/cgfont/descent.md)
- [fontBBox](coregraphics/cgfont/fontbbox.md)
- [italicAngle](coregraphics/cgfont/italicangle.md)
- [leading](coregraphics/cgfont/leading.md)
- [stemV](coregraphics/cgfont/stemv.md)
- [unitsPerEm](coregraphics/cgfont/unitsperem.md)
- [xHeight](coregraphics/cgfont/xheight.md)
