# `GSFont componentGlyphNamesForGlyph:inMasterWithID:`

*Instance Method*

Returns component glyph names used by a glyph on a master.

## Declaration

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

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

```python
componentGlyphNamesForGlyph_inMasterWithID_(glyph: GSGlyph, masterID: str) -> set[str]
```

## Parameters

- `glyph` — The glyph whose component glyph names are requested.
- `masterID` — The master identifier whose layers are searched.

## Discussion

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

## See Also

### Glyph Relationships

- [`GSFont componentGlyphNamesForGlyph:`](/Core/GlyphsCore/GSFont/componentGlyphNamesForGlyph:) — Returns component glyph names used by a glyph.
- [`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.

