# `GSFont customParameterForKey:`

*Instance Method*

The first custom parameter with a name.

## Declaration

```swift
func customParameter(forKey key: String) -> GSCustomParameter?
```

```objc
- (GSCustomParameter *) customParameterForKey:(NSString *) key;
```

```python
customParameterForKey_(key: str) -> GSCustomParameter
```

## Parameters

- `key` — The custom parameter name.

## Discussion

The parameter is returned even when it is inactive.

## See Also

### Custom Parameters

- [`GSFont.customParameters`](/Core/GlyphsCore/GSFont/customParameters) — Custom parameters stored in the font.
- [`GSFont countOfCustomParameters`](/Core/GlyphsCore/GSFont/countOfCustomParameters) — The number of custom parameters.
- [`GSFont objectInCustomParametersAtIndex:`](/Core/GlyphsCore/GSFont/objectInCustomParametersAtIndex:) — The custom parameter at an index.
- [`GSFont customParameterActiveForKey:`](/Core/GlyphsCore/GSFont/customParameterActiveForKey:) — The first active custom parameter with a name.
- [`GSFont customValueForKey:`](/Core/GlyphsCore/GSFont/customValueForKey:) — The value of an active custom parameter.
- [`GSFont customBoolValueForKey:`](/Core/GlyphsCore/GSFont/customBoolValueForKey:) — The Boolean value of an active custom parameter.
- [`GSFont customColorValueForKey:`](/Core/GlyphsCore/GSFont/customColorValueForKey:) — The color value of an active custom parameter.
- [`GSFont setCustomValue:forKey:`](/Core/GlyphsCore/GSFont/setCustomValue:forKey:) — Sets the value of a custom parameter.
- [`GSFont addCustomParameter:`](/Core/GlyphsCore/GSFont/addCustomParameter:) — Adds a custom parameter.
- [`GSFont insertObject:inCustomParametersAtIndex:`](/Core/GlyphsCore/GSFont/insertObject:inCustomParametersAtIndex:) — Inserts a custom parameter at an index.
- [`GSFont removeObjectFromCustomParameters:`](/Core/GlyphsCore/GSFont/removeObjectFromCustomParameters:) — Removes a custom parameter.
- [`GSFont removeObjectFromCustomParametersAtIndex:`](/Core/GlyphsCore/GSFont/removeObjectFromCustomParametersAtIndex:) — Removes the custom parameter at an index.
- [`GSFont removeObjectFromCustomParametersForKey:`](/Core/GlyphsCore/GSFont/removeObjectFromCustomParametersForKey:) — Removes the first custom parameter with a name.
- [`GSFont replaceObjectInCustomParametersAtIndex:withObject:`](/Core/GlyphsCore/GSFont/replaceObjectInCustomParametersAtIndex:withObject:) — Replaces the custom parameter at an index.
- [`GSFont invalidateCustomParameterCache`](/Core/GlyphsCore/GSFont/invalidateCustomParameterCache) — Invalidates cached active custom parameter values.

