---
title: "CTFontGetGlyphCount(_:)"
framework: coretext
role: symbol
role_heading: Function
path: "coretext/ctfontgetglyphcount(_:)"
---

# CTFontGetGlyphCount(_:)

Returns the number of glyphs of the given font.

## Declaration

```swift
func CTFontGetGlyphCount(_ font: CTFont) -> CFIndex
```

## Parameters

- `font`: The font reference.

## Return Value

Return Value The number of glyphs in the font.

## See Also

### Getting Font Metrics

- [CTFontGetAscent(_:)](coretext/ctfontgetascent(_:).md)
- [CTFontGetDescent(_:)](coretext/ctfontgetdescent(_:).md)
- [CTFontGetLeading(_:)](coretext/ctfontgetleading(_:).md)
- [CTFontGetUnitsPerEm(_:)](coretext/ctfontgetunitsperem(_:).md)
- [CTFontGetBoundingBox(_:)](coretext/ctfontgetboundingbox(_:).md)
- [CTFontGetUnderlinePosition(_:)](coretext/ctfontgetunderlineposition(_:).md)
- [CTFontGetUnderlineThickness(_:)](coretext/ctfontgetunderlinethickness(_:).md)
- [CTFontGetSlantAngle(_:)](coretext/ctfontgetslantangle(_:).md)
- [CTFontGetCapHeight(_:)](coretext/ctfontgetcapheight(_:).md)
- [CTFontGetXHeight(_:)](coretext/ctfontgetxheight(_:).md)
