# `GSGlyph.script`

*Instance Property*

The writing system associated with the glyph.

## Declaration

```swift
var script: GSScriptID? { get set }
```

```objc
@property (nonatomic, copy) GSScriptID script;
```

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

```python
pyobjc_instanceMethods.script() -> GSScriptID
pyobjc_instanceMethods.setScript_(script: GSScriptID)
```

## Discussion

This value is usually supplied by the Glyph Info Database. Set [`GSGlyph.storeScript`](/Core/GlyphsCore/GSGlyph/storeScript) to `YES` to persist a glyph-local override instead of deriving it from the glyph name.

## See Also

### Script

- [`GSGlyph.storeScript`](/Core/GlyphsCore/GSGlyph/storeScript) — Whether [`GSGlyph.script`](/Core/GlyphsCore/GSGlyph/script) is stored as glyph-local glyph info.

