# `GSLayer axes`

*Instance Method*

Axes used to locate the layer in its design space.

## Declaration

```swift
func axes() -> [GSAxis]
```

```objc
- (NSArray<GSAxis *> *) axes;
```

```python
axes() -> list[GSAxis]
```

## Discussion

Smart glyphs use their glyph-local axes, corner glyphs use the corner axes, and other glyphs use the font axes. The layer must be attached to a font when it does not provide glyph-local or corner axes.

## See Also

### Variation Axes

- [`GSLayer axisInternalValueValueForId:`](/Core/GlyphsCore/GSLayer/axisInternalValueValueForId:) — Internal value for an axis.
- [`GSLayer rule:matchesCoordinates:`](/Core/GlyphsCore/GSLayer/rule:matchesCoordinates:) — Whether axis values satisfy all bounds in a set of Alternative-layer rules.

