# `GSFont defaultFontMaster:`

*Instance Method*

Returns the master used as the default interpolation origin.

## Declaration

```swift
func defaultFontMaster(_ instance: GSInstance?) -> GSFontMaster
```

```objc
- (GSFontMaster *) defaultFontMaster:(GSInstance *) instance;
```

```python
defaultFontMaster_(instance: GSInstance) -> GSFontMaster
```

## Discussion

A Variable Font Origin custom parameter on the instance is preferred. If none is available, the font-level Variable Font Origin custom parameter is used. If no origin can be resolved, the first master is used.

## See Also

### Masters

- [`GSFont.fontMasters`](/Core/GlyphsCore/GSFont/fontMasters) — The local masters of the font.
- [`GSFont.countOfFontMasters`](/Core/GlyphsCore/GSFont/countOfFontMasters) — The number of local masters.
- [`GSFont fontMasterAtIndex:`](/Core/GlyphsCore/GSFont/fontMasterAtIndex:) — Returns the local or imported master at an index, or `nil` when the index is out of bounds.
- [`GSFont indexOfFontMaster:`](/Core/GlyphsCore/GSFont/indexOfFontMaster:) — Returns the index of a local master, or `NSNotFound` when the master is not local.
- [`GSFont fontMasterForId:`](/Core/GlyphsCore/GSFont/fontMasterForId:) — Returns the local or imported master with an identifier, or `nil` when no master matches.
- [`GSFont fontMasterForName:`](/Core/GlyphsCore/GSFont/fontMasterForName:) — Returns the first local or imported master with a name, or `nil` when no master matches.
- [`GSFont newMasterId`](/Core/GlyphsCore/GSFont/newMasterId) — Returns an unused master identifier.
- [`GSFont insertFontMaster:atIndex:`](/Core/GlyphsCore/GSFont/insertFontMaster:atIndex:) — Inserts a local master without adding layer content.
- [`GSFont addFontMaster:`](/Core/GlyphsCore/GSFont/addFontMaster:) — Appends a local master without adding layer content.
- [`GSFont removeFontMaster:`](/Core/GlyphsCore/GSFont/removeFontMaster:) — Removes a local master without removing layer content.

