# `GSFont convertKerning:`

*Instance Method*

Converts imported kerning from glyph names to glyph identifiers.

## Declaration

```swift
func convertKerning() throws
```

```objc
- (BOOL) convertKerning:(NSError **) error;
```

```python
convertKerning_() -> tuple[bool, NSError]
```

## Parameters

- `error` — On output, a pointer to an error object that describes why the method failed, or `nil` if no error occurred. If you are not interested in the error information, pass `nil` for this parameter.

## Return Value

`YES` if the method succeeded, otherwise `NO`.

## Discussion

This method is part of the Glyphs file import path.

## See Also

### Kerning Maintenance

- [`GSFont compressKerningForDirection:`](/Core/GlyphsCore/GSFont/compressKerningForDirection:) — Converts redundant glyph kerning to group kerning for a writing direction.
- [`GSFont cleanUpKerningForDirection:`](/Core/GlyphsCore/GSFont/cleanUpKerningForDirection:) — Removes kerning pairs that reference missing glyphs or unused groups.
- [`GSFont sortKerning`](/Core/GlyphsCore/GSFont/sortKerning) — Sorts the kerning dictionaries into font order.
- [`GSFont replaceKey:forMasterIds:leftKey:rightKey:side:writingDirection:`](/Core/GlyphsCore/GSFont/replaceKey:forMasterIds:leftKey:rightKey:side:writingDirection:) — Replaces a kerning key in selected masters and writing direction.
- [`GSFont migrateRTLKerning`](/Core/GlyphsCore/GSFont/migrateRTLKerning) — Moves right-to-left kerning from left-to-right kerning data to right-to-left kerning data.
- [`GSFont migrateRTLKerningDict:doClasses:`](/Core/GlyphsCore/GSFont/migrateRTLKerningDict:doClasses:) — Returns migrated right-to-left kerning data from a kerning dictionary.
- [`GSFont backportRTLKerning`](/Core/GlyphsCore/GSFont/backportRTLKerning) — Returns right-to-left kerning converted back into left-to-right kerning data.

