# `GSGlyph transferHintsFromLayer:to:`

*Instance Method*

Adds hint categories missing from a compatible target layer.

## Declaration

```swift
func transferHints(from source: GSLayer, to target: GSLayer)
```

```objc
- (void) transferHintsFromLayer:(GSLayer *) source to:(GSLayer *) target;
```

```python
transferHintsFromLayer_to_(source: GSLayer, target: GSLayer)
```

## Parameters

- `source` — The layer from which hints are copied.
- `target` — The layer that receives copies of missing hint categories.

## Discussion

PostScript, TrueType, and path-component hints are considered independently. The layers must have matching node and shape structure.

## See Also

### Hints

- [`GSGlyph ensureHintsInLayer:layers:masters:font:`](/Core/GlyphsCore/GSGlyph/ensureHintsInLayer:layers:masters:font:) — Ensures that an interpolated layer has hints from a structurally compatible source layer.

