# `GSLayer.font`

*Instance Property*

The font containing the layer through its glyph, or `nil` while the layer is detached.

## Declaration

```swift
var font: GSFont? { get }
```

```objc
@property (nonatomic, readonly) GSFont * font;
```

```python
font() -> GSFont
```

## See Also

### Ownership

- [`GSLayer.parent`](/Core/GlyphsCore/GSLayer/parent) — The glyph containing the layer, or `nil` while the layer is detached.
- [`GSLayer.glyph`](/Core/GlyphsCore/GSLayer/glyph) — The glyph containing the layer, or `nil` while the layer is detached.

