# `GSGlyph ensureHintsInLayer:layers:masters:font:`

*Instance Method*

Ensures that an interpolated layer has hints from a structurally compatible source layer.

## Declaration

```swift
func ensureHints(in layer: GSLayer, layers: [GSLayer], masters: [GSFontMaster], font: GSFont)
```

```objc
- (void) ensureHintsInLayer:(GSLayer *) layer layers:(NSArray<GSLayer *> *) layers masters:(NSArray<GSFontMaster *> *) masters font:(GSFont *) font;
```

```python
ensureHintsInLayer_layers_masters_font_(layer: GSLayer, layers: list[GSLayer], masters: list[GSFontMaster], font: GSFont)
```

## Parameters

- `layer` — The interpolated layer that receives hints when needed.
- `layers` — The layers participating in the interpolation.
- `masters` — The font masters participating in the interpolation.
- `font` — The font that supplies the hinting-master settings.

## Discussion

A configured hinting master is preferred over the other participating layers and font masters. Existing PostScript or TrueType hints are retained.

## See Also

### Hints

- [`GSGlyph transferHintsFromLayer:to:`](/Core/GlyphsCore/GSGlyph/transferHintsFromLayer:to:) — Adds hint categories missing from a compatible target layer.

