# `GSFont.axes`

*Instance Property*

The font axes defining the font design space.

## Declaration

```swift
var axes: [GSAxis] { get set }
```

```objc
@property (nonatomic, strong) NSArray<GSAxis *> * axes;
```

[See also `axes` in the Python API](https://docu.glyphsapp.com/#GSFont.axes)

```python
pyobjc_instanceMethods.axes() -> list[GSAxis]
pyobjc_instanceMethods.setAxes_(axes: list[GSAxis])
```

## Discussion

Font axes are shared by masters, instances, layers, and glyphs. Each axis in this collection belongs to the font. Use this property or the axis mutation methods instead of modifying the returned array directly.

## See Also

### Axes

- [`GSFont countOfAxes`](/Core/GlyphsCore/GSFont/countOfAxes) — The number of font axes.
- [`GSFont objectInAxesAtIndex:`](/Core/GlyphsCore/GSFont/objectInAxesAtIndex:) — The font axis at an index, or `nil` when the index is out of range.
- [`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.

