# GSLayer Kerning

*API Collection*

Spacing adjustment between specific layers.

## Overview

Kerning is stored on the font for a master and writing direction. Layer-level kerning APIs resolve the pair through the layer’s glyph and associated master.

Kerning may come from glyph-specific pairs or kerning groups. A kerning exception stores a glyph-specific pair value where group kerning would otherwise apply.

## Topics

### 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 nextKerningForLayer:direction:`](/Core/GlyphsCore/GSLayer/nextKerningForLayer:direction:) — Kerning value between this layer and a next layer.
- [`GSLayer setNextKerning:forLayer:direction:`](/Core/GlyphsCore/GSLayer/setNextKerning:forLayer:direction:) — Sets the kerning value between this layer and a next layer.

### Kerning Exceptions

- [`GSLayer previousKerningExceptionForLayer:direction:`](/Core/GlyphsCore/GSLayer/previousKerningExceptionForLayer:direction:) — Whether the pair between a previous layer and this layer has a kerning exception.
- [`GSLayer setPreviousKerningException:forLayer:direction:`](/Core/GlyphsCore/GSLayer/setPreviousKerningException:forLayer:direction:) — Sets whether the pair between a previous layer and this layer has a kerning exception.
- [`GSLayer nextKerningExceptionForLayer:direction:`](/Core/GlyphsCore/GSLayer/nextKerningExceptionForLayer:direction:) — Whether the pair between this layer and a next layer has a kerning exception.
- [`GSLayer setNextKerningException:forLayer:direction:`](/Core/GlyphsCore/GSLayer/setNextKerningException:forLayer:direction:) — Sets whether the pair between this layer and a next layer has a kerning exception.

## See Also

- [GSLayer Kind](/Core/GlyphsCore/GSLayer-Kind) — The different roles that a layer can serve.
- [GSLayer Shapes](/Core/GlyphsCore/GSLayer-Shapes) — The paths and components that form the outline of a layer.
- [GSLayer Bounds](/Core/GlyphsCore/GSLayer-Bounds) — Bounding rectangles of outlines, selections, and metrics.
- [GSLayer Metrics](/Core/GlyphsCore/GSLayer-Metrics) — Side bearings, baseline offsets, layer box, and metrics keys.
- [GSLayer Grid](/Core/GlyphsCore/GSLayer-Grid) — Setting for rounding coordinates on a layer.
- [GSLayer Background](/Core/GlyphsCore/GSLayer-Background) — Background content and reference images associated with a layer.
- [GSLayer Anchors](/Core/GlyphsCore/GSLayer-Anchors) — Named attachment points on a layer.
- [GSLayer Hints](/Core/GlyphsCore/GSLayer-Hints) — Manual and generated hint data on a layer.
- [GSLayer Guides](/Core/GlyphsCore/GSLayer-Guides) — Layer-local guides used while editing outlines.
- [GSLayer Annotations](/Core/GlyphsCore/GSLayer-Annotations) — Layer-local notes displayed with a glyph.
- [GSLayer Interpolation](/Core/GlyphsCore/GSLayer-Interpolation) — Axis coordinates and rules that place layers in a design space.
- [GSLayer Color](/Core/GlyphsCore/GSLayer-Color) — Colors used to draw a layer.
- [GSLayer Attributes](/Core/GlyphsCore/GSLayer-Attributes) — Additional values stored for a layer.
- [GSLayer Inspection](/Core/GlyphsCore/GSLayer-Inspection) — Intersections between layer outlines and line segments.
- [GSLayer Editing](/Core/GlyphsCore/GSLayer-Editing) — Operations for modifying outlines and other layer content.

