# `GSFont tempDataForKey:`

*Instance Method*

Returns temporary data for a key, or `nil` if no value is set.

## Declaration

```swift
func tempData(forKey key: String) -> Any?
```

```objc
- (id) tempDataForKey:(NSString *) key;
```

```python
tempDataForKey_(key: str) -> object
```

## See Also

### Temporary Data

- [`GSFont.tempData`](/Core/GlyphsCore/GSFont/tempData) — Runtime data stored on the font.
- [`GSFont setTempData:forKey:`](/Core/GlyphsCore/GSFont/setTempData:forKey:) — Sets temporary data for a key.

