# `GSFont.kerningContext`

*Instance Property*

Contextual kerning data.

## Declaration

```swift
var kerningContext: MGOrderedDictionary<NSString, MGOrderedDictionary<AnyObject, AnyObject>> { get set }
```

```objc
@property (nonatomic, strong) MGOrderedDictionary<NSString *,MGOrderedDictionary *> * kerningContext;
```

```python
kerningContext() -> MGOrderedDictionary<NSString *,MGOrderedDictionary *>
setKerningContext_(kerningContext: MGOrderedDictionary<NSString *,MGOrderedDictionary *>)
```

## Discussion

The outer dictionary is keyed by context key. Each context dictionary maps master identifiers to kerning values.

## See Also

### Contextual Kerning

- [`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 replaceContextKerningKey:key:`](/Core/GlyphsCore/GSFont/replaceContextKerningKey:key:) — Replaces a context key while keeping its master values.
- [`GSFont parseContextKey:`](/Core/GlyphsCore/GSFont/parseContextKey:) — Parses a contextual kerning key into glyph tokens and class tokens.

