# `GSFont replaceContextKerningKey:key:`

*Instance Method*

Replaces a context key while keeping its master values.

## Declaration

```swift
func replaceContextKerningKey(_ key: String, key replaceKey: String)
```

```objc
- (void) replaceContextKerningKey:(NSString *) key key:(NSString *) replaceKey;
```

```python
replaceContextKerningKey_key_(key: str, replaceKey: str)
```

## See Also

### Contextual Kerning

- [`GSFont.kerningContext`](/Core/GlyphsCore/GSFont/kerningContext) — Contextual kerning data.
- [`GSFont contextKerningForKey:fontMasterID:`](/Core/GlyphsCore/GSFont/contextKerningForKey:fontMasterID:) — Contextual kerning value for a context key and master, or `NSNotFound` when no value is stored.
- [`GSFont setContextKerningForKey:fontMasterID:value:`](/Core/GlyphsCore/GSFont/setContextKerningForKey:fontMasterID:value:) — Sets the contextual kerning value for a context key and master.
- [`GSFont removeContextKerningForKey:fontMasterID:`](/Core/GlyphsCore/GSFont/removeContextKerningForKey:fontMasterID:) — Removes the contextual kerning value for a context key and master.
- [`GSFont parseContextKey:`](/Core/GlyphsCore/GSFont/parseContextKey:) — Parses a contextual kerning key into glyph tokens and class tokens.

