# `GSFont propertyListValueFormat:error:`

*Instance Method*

A property-list representation of the font.

## Declaration

```swift
func propertyListValue(format: GSFormatVersion) throws -> [String : Any]
```

```objc
- (NSDictionary<NSString *,id> *) propertyListValueFormat:(GSFormatVersion) format error:(NSError **) error;
```

```python
propertyListValueFormat_error_(format: GSFormatVersion) -> tuple[dict[str, object], NSError]
```

## Parameters

- `format` — The Glyphs file format version to use.
- `error` — On output, a pointer to an error object that describes why the method failed, or `nil` if no error occurred. If you are not interested in the error information, pass `nil` for this parameter.

## Discussion

The format controls which keys can be written and how values are encoded.

## See Also

### Saving

- [`GSFont saveToURL:type:error:`](/Core/GlyphsCore/GSFont/saveToURL:type:error:) — Saves the font to a file or package.
- [`GSFont saveToURL:type:format:context:error:`](/Core/GlyphsCore/GSFont/saveToURL:type:format:context:error:) — Saves the font to a file or package using an explicit format and save context.
- [`GSFont saveContextForURL:type:`](/Core/GlyphsCore/GSFont/saveContextForURL:type:) — Creates a save context for a destination and package type.
- [`GSFont preWrite:`](/Core/GlyphsCore/GSFont/preWrite:) — Prepares the font before writing.
- [`GSFont writeSettingsDict:`](/Core/GlyphsCore/GSFont/writeSettingsDict:) — A property-list representation of editor and file settings.

