# `GSFont addStem:`

*Instance Method*

Adds a stem definition to the font.

## Declaration

```swift
func addStem(_ stem: GSMetric)
```

```objc
- (void) addStem:(GSMetric *) stem;
```

```python
addStem_(stem: GSMetric)
```

## Discussion

Missing stem identifiers are created automatically.

## See Also

### Stems

- [`GSFont.stems`](/Core/GlyphsCore/GSFont/stems) — Font-wide stem definitions.
- [`GSFont countOfStems`](/Core/GlyphsCore/GSFont/countOfStems) — Returns the number of stem definitions.
- [`GSFont objectInStemsAtIndex:`](/Core/GlyphsCore/GSFont/objectInStemsAtIndex:) — Returns the stem at an index.
- [`GSFont stemForId:`](/Core/GlyphsCore/GSFont/stemForId:) — Returns the first stem with an identifier.
- [`GSFont stemForName:`](/Core/GlyphsCore/GSFont/stemForName:) — Returns the first stem with a name.
- [`GSFont removeObjectFromStems:`](/Core/GlyphsCore/GSFont/removeObjectFromStems:) — Removes a stem definition from the font.

