---
title: Advanced Font Metrics
framework: appkit
role: collectionGroup
role_heading: API Collection
path: appkit/advanced-font-metrics
---

# Advanced Font Metrics

Retrieve details about ascender and descender heights, glyph bounding rectangles, glyph advancements, and more.

## Topics

### Getting the Font Metrics

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

### Getting Underline and Italic Metrics

- [italicAngle](appkit/nsfont/italicangle.md)
- [underlinePosition](appkit/nsfont/underlineposition.md)
- [underlineThickness](appkit/nsfont/underlinethickness.md)

### Getting Bounding Rectangles

- [boundingRectForFont](appkit/nsfont/boundingrectforfont.md)
- [boundingRect(forCGGlyph:)](appkit/nsfont/boundingrect(forcgglyph:).md)
- [getBoundingRects(_:forCGGlyphs:count:)](appkit/nsfont/getboundingrects(_:forcgglyphs:count:).md)

### Getting Glyph Advancements

- [maximumAdvancement](appkit/nsfont/maximumadvancement.md)
- [advancement(forCGGlyph:)](appkit/nsfont/advancement(forcgglyph:).md)
- [getAdvancements(_:forCGGlyphs:count:)](appkit/nsfont/getadvancements(_:forcgglyphs:count:).md)

### Getting the Font Matrices

- [matrix](appkit/nsfont/matrix.md)
- [textTransform](appkit/nsfont/texttransform.md)
- [identityMatrix](appkit/nsfont/identitymatrix.md)

## See Also

### Getting Font Metrics and Information

- [pointSize](appkit/nsfont/pointsize.md)
- [coveredCharacterSet](appkit/nsfont/coveredcharacterset.md)
- [fontDescriptor](appkit/nsfont/fontdescriptor.md)
- [isFixedPitch](appkit/nsfont/isfixedpitch.md)
- [mostCompatibleStringEncoding](appkit/nsfont/mostcompatiblestringencoding.md)
