# `GSFont componentGlyphNamesForGlyph:`

*Instance Method*

Returns component glyph names used by a glyph.

## Declaration

```swift
func componentGlyphNames(for glyph: GSGlyph) -> Set<String>
```

```objc
- (NSSet<NSString *> *) componentGlyphNamesForGlyph:(GSGlyph *) glyph;
```

```python
componentGlyphNamesForGlyph_(glyph: GSGlyph) -> set[str]
```

## Parameters

- `glyph` — The glyph whose component glyph names are requested.

## Discussion

The search follows each component glyph once from the first master layer. Path-component hints on searched layers are included.

## See Also

### Glyph Relationships

- [`GSFont componentGlyphNamesForGlyph:inMasterWithID:`](/Core/GlyphsCore/GSFont/componentGlyphNamesForGlyph:inMasterWithID:) — Returns component glyph names used by a glyph on a master.
- [`GSFont glyphsContainingComponentWithName:masterId:`](/Core/GlyphsCore/GSFont/glyphsContainingComponentWithName:masterId:) — Returns glyphs that reference a component glyph on a master layer.
- [`GSFont glyphsInfo`](/Core/GlyphsCore/GSFont/glyphsInfo) — Glyph information used to derive glyph metadata and component relationships.

