# `GSGlyph.id`

*Instance Property*

The identifier used to refer to the glyph independently of its name.

## Declaration

```swift
var id: String { get set }
```

```objc
@property (nonatomic, strong) NSString * id;
```

[See also `id` in the Python API](https://docu.glyphsapp.com/#GSGlyph.id)

```python
pyobjc_instanceMethods.id() -> str
pyobjc_instanceMethods.setId_(id: str)
```

## Discussion

The identifier is unique among the glyphs in a font and is used by kerning and identifier-based lookup. It exists only at runtime and is regenerated when the glyph is loaded. Do not use it to refer to a glyph across font sessions. Renaming the glyph does not change this identifier. Adding a glyph to a font replaces a missing or duplicate identifier. Do not change the identifier while the glyph belongs to a font because existing references are not updated.

## See Also

### ID

- [`GSGlyph.glyphId`](/Core/GlyphsCore/GSGlyph/glyphId) — The current index in the containing font’s glyph collection.

