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

# numberOfGlyphs

Returns the number of glyphs in a font.

## Declaration

```swift
var numberOfGlyphs: Int { get }
```

## See Also

### Working with Glyphs

- [name(for:)](coregraphics/cgfont/name(for:).md)
- [getGlyphWithGlyphName(name:)](coregraphics/cgfont/getglyphwithglyphname(name:).md)
- [getGlyphBBoxes(glyphs:count:bboxes:)](coregraphics/cgfont/getglyphbboxes(glyphs:count:bboxes:).md)
- [getGlyphAdvances(glyphs:count:advances:)](coregraphics/cgfont/getglyphadvances(glyphs:count:advances:).md)
- [CGGlyph](coregraphics/cgglyph.md)
- [kCGGlyphMax](coregraphics/kcgglyphmax.md)
- [CGFontIndex](coregraphics/cgfontindex.md)
- [kCGFontIndexMax](coregraphics/kcgfontindexmax.md)
- [kCGFontIndexInvalid](coregraphics/kcgfontindexinvalid.md)
