# `GSFont glyphAtIndex:`

*Instance Method*

Returns the local glyph at an index in [`GSFont.glyphs`](/Core/GlyphsCore/GSFont/glyphs), or `nil` when the index is out of bounds.

## Declaration

```swift
func glyph(at idx: Int) -> GSGlyph?
```

```objc
- (GSGlyph *) glyphAtIndex:(NSInteger) idx;
```

```python
glyphAtIndex_(idx: int) -> GSGlyph
```

## 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 countOfGlyphs`](/Core/GlyphsCore/GSFont/countOfGlyphs) — The number of local glyphs defined by the font.
- [`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.

