# `GSFont index(of:)`

*Instance Method*

The index of a local or imported master, or `nil` when the master is not in the font.

## Declaration

```swift
func index(of master: GSFontMaster) -> Int?
```

## See Also

### Imported Masters and Fonts

- [`GSFont.importedFontMasters`](/Core/GlyphsCore/GSFont/importedFontMasters) — The masters imported from linked fonts.
- [`GSFont.importedFonts`](/Core/GlyphsCore/GSFont/importedFonts) — The fonts that supply imported glyphs or imported masters.
- [`GSFont.allMasters`](/Core/GlyphsCore/GSFont/allMasters) — The local and imported masters of the font.
- [`GSFont.countOfAllMasters`](/Core/GlyphsCore/GSFont/countOfAllMasters) — The number of local and imported masters.
- [`GSFont allMasterAtIndex:`](/Core/GlyphsCore/GSFont/allMasterAtIndex:) — Returns the local or imported master at an index, or `nil` when the index is out of bounds.
- [`GSFont reloadLinkedFonts:`](/Core/GlyphsCore/GSFont/reloadLinkedFonts:) — Reloads linked fonts and refreshes imported masters and imported glyphs.

