# `GSFont addGlyphsFromArray:`

*Instance Method*

Adds a sequence of glyphs to the font as one undoable change.

## Declaration

```swift
func addGlyphs(_ glyphs: [GSGlyph])
```

```objc
- (void) addGlyphsFromArray:(NSArray<GSGlyph *> *) glyphs;
```

```python
addGlyphsFromArray_(glyphs: list[GSGlyph])
```

## Discussion

Each glyph receives this font as its parent. Names and identifiers that conflict with glyphs already in the font are adjusted. The glyphs must not belong to another font.

## See Also

### Adding and Removing Glyphs

- [`GSFont newGlyphWithName:`](/Core/GlyphsCore/GSFont/newGlyphWithName:) — Creates a glyph configured for the font without adding it to [`GSFont.glyphs`](/Core/GlyphsCore/GSFont/glyphs).
- [`GSFont newGlyphWithName:changeName:`](/Core/GlyphsCore/GSFont/newGlyphWithName:changeName:) — Creates a glyph configured for the font without adding it to [`GSFont.glyphs`](/Core/GlyphsCore/GSFont/glyphs).
- [`GSFont addGlyph:`](/Core/GlyphsCore/GSFont/addGlyph:) — Adds a glyph to the font.
- [`GSFont addGlyphFast:`](/Core/GlyphsCore/GSFont/addGlyphFast:) — Adds a glyph without undo, observer notifications, synchronization, or cache updates.
- [`GSFont removeGlyph:`](/Core/GlyphsCore/GSFont/removeGlyph:) — Removes a glyph from the font and clears its parent.
- [`GSFont removeGlyphs:`](/Core/GlyphsCore/GSFont/removeGlyphs:) — Removes a sequence of glyphs from the font as one undoable change.
- [`GSFont generateGlyphs:callback:`](/Core/GlyphsCore/GSFont/generateGlyphs:callback:) — Creates and adds glyphs for a sequence of glyph names and Unicode ranges.

