# `GSFont objectInAxesAtIndex:`

*Instance Method*

The font axis at an index, or `nil` when the index is out of range.

## Declaration

```swift
func axis(at idx: UInt) -> GSAxis?
```

```objc
- (GSAxis *) objectInAxesAtIndex:(NSUInteger) idx;
```

```python
objectInAxesAtIndex_(idx: int) -> GSAxis
```

## Parameters

- `idx` — The index in [`GSFont.axes`](/Core/GlyphsCore/GSFont/axes).

## See Also

### Axes

- [`GSFont.axes`](/Core/GlyphsCore/GSFont/axes) — The font axes defining the font design space.
- [`GSFont countOfAxes`](/Core/GlyphsCore/GSFont/countOfAxes) — The number of font axes.
- [`GSFont indexOfObjectInAxes:`](/Core/GlyphsCore/GSFont/indexOfObjectInAxes:) — Returns the index of a font axis, or `NSNotFound` when the axis is not in the font.
- [`GSFont.canonicalAxes`](/Core/GlyphsCore/GSFont/canonicalAxes) — The canonical font axes.
- [`GSFont axisForId:`](/Core/GlyphsCore/GSFont/axisForId:) — Returns the font axis with an identifier, or `nil` when no axis matches.
- [`GSFont axisForName:`](/Core/GlyphsCore/GSFont/axisForName:) — Returns the font axis with a name, or `nil` when no axis matches.
- [`GSFont axisForTag:`](/Core/GlyphsCore/GSFont/axisForTag:) — Returns the font axis with an OpenType variation tag, or `nil` when no axis matches.
- [`GSFont addAxis:`](/Core/GlyphsCore/GSFont/addAxis:) — Adds a font axis.
- [`GSFont insertObject:inAxesAtIndex:`](/Core/GlyphsCore/GSFont/insertObject:inAxesAtIndex:) — Inserts a font axis at an index.
- [`GSFont removeObjectFromAxes:`](/Core/GlyphsCore/GSFont/removeObjectFromAxes:) — Removes a font axis.
- [`GSFont removeObjectFromAxesAtIndex:`](/Core/GlyphsCore/GSFont/removeObjectFromAxesAtIndex:) — Removes the font axis at an index.
- [`GSFont legacyAxes`](/Core/GlyphsCore/GSFont/legacyAxes) — Returns font axes derived from legacy master coordinate data.

