# `GSFont glyphHasChangedName:oldName:`

*Instance Method*

Notifies the font that a glyph name has changed.

## Declaration

```swift
func glyphHasChangedName(_ glyph: GSGlyph, oldName: String?)
```

```objc
- (void) glyphHasChangedName:(GSGlyph *) glyph oldName:(NSString *) oldName;
```

```python
glyphHasChangedName_oldName_(glyph: GSGlyph, oldName: str)
```

## Parameters

- `glyph` — The glyph whose name changed.
- `oldName` — The previous glyph name, or `nil` when the glyph did not have a name.

## Discussion

Call this method after changing a glyph name without using the regular glyph-name API.

## See Also

### Glyph Names

- [`GSFont safeNameForGlyph:`](/Core/GlyphsCore/GSFont/safeNameForGlyph:) — A name that is unique among the local glyphs in the font.
- [`GSFont safeNameForName:`](/Core/GlyphsCore/GSFont/safeNameForName:) — A name that is unique among the local glyphs in the font.
- [`GSFont safeSuffixForGlyph:`](/Core/GlyphsCore/GSFont/safeSuffixForGlyph:) — A suffix that makes the glyph name unique among the local glyphs in the font, or `nil` when no suffix is needed.
- [`GSFont makeSafeGlyphInfo:`](/Core/GlyphsCore/GSFont/makeSafeGlyphInfo:) — Makes the glyph name unique among the local glyphs in the font.
- [`GSFont needsUpdateRenamedGlyphs:`](/Core/GlyphsCore/GSFont/needsUpdateRenamedGlyphs:) — The kinds of references affected by renamed glyphs.
- [`GSFont updateRenamedGlyphs:`](/Core/GlyphsCore/GSFont/updateRenamedGlyphs:) — Updates references to renamed glyphs after confirmation when affected references exist.
- [`GSFont doUpdateRenamedGlyphs:`](/Core/GlyphsCore/GSFont/doUpdateRenamedGlyphs:) — Updates references to renamed glyphs without requesting confirmation.
- [`GSFont code:containsGlyphName:`](/Core/GlyphsCore/GSFont/code:containsGlyphName:) — Returns whether OpenType feature code contains a glyph name as a complete token.

