# `GSFont glyphsContainingComponentWithName:masterId:`

*Instance Method*

Returns glyphs that reference a component glyph on a master layer.

## Declaration

```swift
func glyphsContainingComponent(withName glyphName: String, masterId masterID: String) -> [GSGlyph]
```

```objc
- (NSArray<GSGlyph *> *) glyphsContainingComponentWithName:(NSString *) glyphName masterId:(NSString *) masterID;
```

```python
glyphsContainingComponentWithName_masterId_(glyphName: str, masterID: str) -> list[GSGlyph]
```

## Parameters

- `glyphName` — The component glyph name to find.
- `masterID` — The master identifier whose layer is searched in each glyph.

## Discussion

The search includes component shapes and path-component hints on the layer for the specified master. A glyph is returned at most once.

## See Also

### Glyph Relationships

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

