# `GSFeatureGenerator updateFeature:forFont:error:`

*Instance Method*

Updates a particular feature

## Declaration

```swift
func update(_ feature: GSFeature, for font: GSFont) throws
```

```objc
- (BOOL) updateFeature:(GSFeature *) feature forFont:(GSFont *) font error:(NSError **) error;
```

```python
updateFeature_forFont_error_(feature: GSFeature, font: GSFont) -> tuple[bool, NSError]
```

## Parameters

- `feature` — The Feature that should be updated
- `font` — The font object that contains the feature
- `error` — If something goes wrong, retunes an NSError by reference.

## Return Value

NO if there was a problem

## Discussion

If the Feature is not there, it will be added

