# `GSFont fileURL`

*Instance Method*

The location of the document containing the font.

## Declaration

```swift
func fileURL() -> URL?
```

```objc
- (NSURL *) fileURL;
```

```python
fileURL() -> NSURL
```

## Discussion

This is `nil` when the font is not attached to a document or the document has no file location.

## See Also

### Document

- [`GSFont.parent`](/Core/GlyphsCore/GSFont/parent) — The document containing the font.

