# `GSFont insertFontMasterAndContent:atIndex:`

*Instance Method*

Inserts a local master and copies the content associated with it into the font.

## Declaration

```swift
func insertFontMasterAndContent(_ fontMaster: GSFontMaster, at index: UInt) -> GSFontMaster
```

```objc
- (GSFontMaster *) insertFontMasterAndContent:(GSFontMaster *) fontMaster atIndex:(NSUInteger) index;
```

```python
insertFontMasterAndContent_atIndex_(fontMaster: GSFontMaster, index: int) -> GSFontMaster
```

## Parameters

- `index` — The insertion index in the local master list.

## Return Value

The inserted master.

## Discussion

The master must belong to a font.

## See Also

### Master Content

- [`GSFont addFontMasterAndContent:`](/Core/GlyphsCore/GSFont/addFontMasterAndContent:) — Adds a local master and copies the content associated with it into the font.
- [`GSFont removeFontMasterAndContent:`](/Core/GlyphsCore/GSFont/removeFontMasterAndContent:) — Removes a local master and the layer content associated with it.
- [`GSFont replaceFontMasterAtIndex:withFontMaster:`](/Core/GlyphsCore/GSFont/replaceFontMasterAtIndex:withFontMaster:) — Replaces a local master at an index without changing layer content.
- [`GSFont copyGlyphs:sourceFontMasterID:targetFontMasterID:addMissing:`](/Core/GlyphsCore/GSFont/copyGlyphs:sourceFontMasterID:targetFontMasterID:addMissing:) — Copies glyph layers associated with one master identifier to another master identifier.
- [`GSFont copyLayersFrom:sourceFontMasterID:targetFontMasterID:`](/Core/GlyphsCore/GSFont/copyLayersFrom:sourceFontMasterID:targetFontMasterID:) — Copies layers associated with one master identifier to another master identifier.
- [`GSFont copyInfoFrom:sourceFontMasterID:targetFontMasterID:`](/Core/GlyphsCore/GSFont/copyInfoFrom:sourceFontMasterID:targetFontMasterID:) — Copies master-specific font information from one master identifier to another master identifier.
- [`GSFont addFontAsNewMaster:`](/Core/GlyphsCore/GSFont/addFontAsNewMaster:) — Adds a master from another font as a new local master.
- [`GSFont addMasterFromInstance:error:`](/Core/GlyphsCore/GSFont/addMasterFromInstance:error:) — Adds the generated contents of an instance as a new local master.

