# `GlyphsFileFormat writeFont:toURL:error:`

*Instance Method*

Saves a Font object to the specified URL.

## Declaration

```swift
func write(_ font: GSFont!, to URL: URL!) throws
```

```objc
- (BOOL) writeFont:(GSFont *) font toURL:(NSURL *) URL error:(NSError **) error;
```

```python
writeFont_toURL_error_(font: GSFont, URL: NSURL) -> tuple[bool, NSError]
```

## Parameters

- `font` — The font to export.
- `URL` — The URL to save the font to.
- `error` — On return, If the document contents could not be read, a pointer to an error object that encapsulates the reason they could not be read.

## Return Value

YES if the operation was successful; otherwise, NO.

## Discussion

This is a save operation so it should be able to read the font back in. Otherwise use exportFont:

