# `GSFont.userData`

*Instance Property*

## Declaration

```swift
var userData: [String : Any] { get set }
```

```objc
@property (nonatomic, strong) NSDictionary<NSString *,id> * userData;
```

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

```python
pyobjc_instanceMethods.userData() -> dict[str, object]
pyobjc_instanceMethods.setUserData_(userData: dict[str, object])
```

## Discussion

Custom data stored with the font.

User data is written to disk. Use unique keys to avoid collisions with other clients. Values should be property-list serializable.

## See Also

### User Data

- [`GSFont userDataForKey:`](/Core/GlyphsCore/GSFont/userDataForKey:) — Returns user data for a key, or `nil` if no value is set.
- [`GSFont setUserData:forKey:`](/Core/GlyphsCore/GSFont/setUserData:forKey:) — Sets user data for a key.
- [`GSFont removeUserDataForKey:`](/Core/GlyphsCore/GSFont/removeUserDataForKey:) — Removes user data for a key.

