# `GSFont countOfGlyphs`

*Instance Method*

The number of local glyphs defined by the font.

## Declaration

```swift
func countOfGlyphs() -> UInt
```

```objc
- (NSUInteger) countOfGlyphs;
```

```python
countOfGlyphs() -> int
```

## See Also

### Glyphs

- [`GSFont.glyphs`](/Core/GlyphsCore/GSFont/glyphs) — The local glyphs defined by the font.
- [`GSFont.allGlyphs`](/Core/GlyphsCore/GSFont/allGlyphs) — The local and imported glyphs available to the font.
- [`GSFont.importedGlyphs`](/Core/GlyphsCore/GSFont/importedGlyphs) — The glyphs supplied by linked fonts.
- [`GSFont.count`](/Core/GlyphsCore/GSFont/count) — The number of local glyphs defined by the font.
- [`GSFont glyphAtIndex:`](/Core/GlyphsCore/GSFont/glyphAtIndex:) — Returns the local glyph at an index in [`GSFont.glyphs`](/Core/GlyphsCore/GSFont/glyphs), or `nil` when the index is out of bounds.
- [`GSFont indexOfGlyph:`](/Core/GlyphsCore/GSFont/indexOfGlyph:) — Returns the index of a local glyph in [`GSFont.glyphs`](/Core/GlyphsCore/GSFont/glyphs), or `NSNotFound` when the glyph is not present.

