# `GSGlyph.glyphId`

*Instance Property*

The current index in the containing font’s glyph collection.

## Declaration

```swift
var glyphId: UInt { get set }
```

```objc
@property (nonatomic) NSUInteger glyphId;
```

```python
glyphId() -> int
setGlyphId_(glyphId: int)
```

## Discussion

The font manages this value as its glyphs are sorted or reordered. A detached glyph does not have a meaningful glyph index.

Do not use this value as persistent identity; use [`GSGlyph.id`](/Core/GlyphsCore/GSGlyph/id) instead.

## See Also

### ID

- [`GSGlyph.id`](/Core/GlyphsCore/GSGlyph/id) — The identifier used to refer to the glyph independently of its name.

