# `GSLayer nextKerningForLayer:direction:`

*Instance Method*

Kerning value between this layer and a next layer.

## Declaration

```objc
- (CGFloat) nextKerningForLayer:(GSLayer *) nextLayer direction:(GSWritingDirection) direction;
```

```python
nextKerningForLayer_direction_(nextLayer: GSLayer, direction: GSWritingDirection) -> float
```

## Parameters

- `nextLayer` — The layer after this layer.

## Discussion

The value is resolved for the layer’s associated master and the requested writing direction. Group kerning and kerning exceptions are considered. Returns `NSNotFound` when no kerning value is defined.

## See Also

### Kerning Values

- [`GSLayer.kerning`](/Core/GlyphsCore/GSLayer/kerning) — Kerning dictionary for observing kerning changes.
- [`GSLayer previousKerningForLayer:direction:`](/Core/GlyphsCore/GSLayer/previousKerningForLayer:direction:) — Kerning value between a previous layer and this layer.
- [`GSLayer setPreviousKerning:forLayer:direction:`](/Core/GlyphsCore/GSLayer/setPreviousKerning:forLayer:direction:) — Sets the kerning value between a previous layer and this layer.
- [`GSLayer setNextKerning:forLayer:direction:`](/Core/GlyphsCore/GSLayer/setNextKerning:forLayer:direction:) — Sets the kerning value between this layer and a next layer.

