# `GSFont.classes`

*Instance Property*

Layout classes in the font.

## Declaration

```swift
var classes: [GSClass] { get set }
```

```objc
@property (nonatomic, strong) NSArray<GSClass *> * classes;
```

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

```python
pyobjc_instanceMethods.classes() -> list[GSClass]
pyobjc_instanceMethods.setClasses_(classes: list[GSClass])
```

## Discussion

A layout class represents a named FEA glyph class.

## See Also

### Layout Classes

- [`GSFont mutableClasses`](/Core/GlyphsCore/GSFont/mutableClasses) — A mutable array of layout classes.
- [`GSFont countOfClasses`](/Core/GlyphsCore/GSFont/countOfClasses) — The number of layout classes.
- [`GSFont objectInClassesAtIndex:`](/Core/GlyphsCore/GSFont/objectInClassesAtIndex:) — The layout class at an index.
- [`GSFont indexOfObjectInClasses:`](/Core/GlyphsCore/GSFont/indexOfObjectInClasses:) — The index of a layout class, or `NSNotFound` when the class is not in the font.
- [`GSFont classForTag:`](/Core/GlyphsCore/GSFont/classForTag:) — The layout class with the specified name.
- [`GSFont addClass:`](/Core/GlyphsCore/GSFont/addClass:) — Adds a layout class.
- [`GSFont addClassFromCode:`](/Core/GlyphsCore/GSFont/addClassFromCode:) — Adds a layout class parsed from FEA class code.
- [`GSFont insertObject:inClassesAtIndex:`](/Core/GlyphsCore/GSFont/insertObject:inClassesAtIndex:) — Inserts a layout class at an index.
- [`GSFont removeClass:`](/Core/GlyphsCore/GSFont/removeClass:) — Removes a layout class.
- [`GSFont removeObjectFromClassesAtIndex:`](/Core/GlyphsCore/GSFont/removeObjectFromClassesAtIndex:) — Removes the layout class at an index.
- [`GSFont replaceObjectInClassesAtIndex:withObject:`](/Core/GlyphsCore/GSFont/replaceObjectInClassesAtIndex:withObject:) — Replaces the layout class at an index.

