# `GSGlyph.parent`

*Instance Property*

The font that contains the glyph, or `nil` for a detached glyph.

## Declaration

```swift
weak var parent: GSFont? { get set }
```

```objc
@property (nonatomic, weak) GSFont * parent;
```

[See also `parent` in the Python API](https://docu.glyphsapp.com/#GSGlyph.parent)

```python
pyobjc_instanceMethods.parent() -> GSFont
pyobjc_instanceMethods.setParent_(parent: GSFont)
```

## Discussion

Use the glyph collection of [`GSFont`](/Core/GlyphsCore/GSFont) to attach or detach a glyph. Assigning this property alone does not update the font’s glyph collection or lookup data.

## See Also

### Ownership

- [`GSGlyph.font`](/Core/GlyphsCore/GSGlyph/font) — The font that contains the glyph, or `nil` for a detached glyph.

