# `GSGlyph.name`

*Instance Property*

The glyph name used within Glyphs.

## Declaration

```swift
var name: String? { get set }
```

```objc
@property (nonatomic, copy) NSString * name;
```

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

```python
pyobjc_instanceMethods.name() -> str
pyobjc_instanceMethods.setName_(name: str)
```

## Discussion

Glyph names identify glyphs in the font and may use the descriptive naming conventions recognized by Glyphs. Exported font files may use a different [`GSGlyph.production`](/Core/GlyphsCore/GSGlyph/production) name. Use [`GSGlyph validateName:`](/Core/GlyphsCore/GSGlyph/validateName:) before assigning a name supplied by an API client. Assigning `nil` or an empty string does not change the name.

## See Also

### Glyph Name

- [`GSGlyph setName:changeName:`](/Core/GlyphsCore/GSGlyph/setName:changeName:) — Assigns a glyph name and updates related glyph information.
- [`GSGlyph setName:changeName:update:validate:`](/Core/GlyphsCore/GSGlyph/setName:changeName:update:validate:) — Assigns a glyph name with control over related updates.
- [`GSGlyph setNameFast:`](/Core/GlyphsCore/GSGlyph/setNameFast:) — Assigns a glyph name without updating related state.
- [`GSGlyph setNameFastCache:`](/Core/GlyphsCore/GSGlyph/setNameFastCache:) — Assigns a glyph name and updates name lookup in the containing font.
- [`GSGlyph.nameUpdate`](/Core/GlyphsCore/GSGlyph/nameUpdate) — The glyph name used within Glyphs, with font references updated when it changes.
- [`GSGlyph setNameUpdate:changeName:`](/Core/GlyphsCore/GSGlyph/setNameUpdate:changeName:) — Assigns a glyph name and updates references to the old glyph name within the font.
- [`GSGlyph validateName:`](/Core/GlyphsCore/GSGlyph/validateName:) — Checks whether a glyph name can be assigned to the receiver.
- [`GSGlyph ensureValidName:`](/Core/GlyphsCore/GSGlyph/ensureValidName:) — Finds the standard glyph name corresponding to a nonstandard name.
- [`GSGlyph isValidNameString:allowSpaces:error:`](/Core/GlyphsCore/GSGlyph/isValidNameString:allowSpaces:error:) — Checks whether a string follows the glyph name syntax.

