# `GSFont extractRemoveParameters:exportGlyphsSet:keepGlyphsSet:reencodeGlyphsSet:removeGlyphsSet:error:`

*Instance Method*

Collects glyph-set export parameters from an instance.

## Declaration

```swift
func extractRemoveParameters(_ instance: GSInstance, exportGlyphsSet: AutoreleasingUnsafeMutablePointer<NSMutableSet?>, keepGlyphsSet: AutoreleasingUnsafeMutablePointer<NSMutableSet?>, reencodeGlyphsSet: AutoreleasingUnsafeMutablePointer<NSMutableSet?>, removeGlyphsSet: AutoreleasingUnsafeMutablePointer<NSMutableSet>) throws
```

```objc
- (BOOL) extractRemoveParameters:(GSInstance *) instance exportGlyphsSet:(NSMutableSet **) exportGlyphsSet keepGlyphsSet:(NSMutableSet **) keepGlyphsSet reencodeGlyphsSet:(NSMutableSet **) reencodeGlyphsSet removeGlyphsSet:(NSMutableSet **) removeGlyphsSet error:(NSError **) error;
```

```python
extractRemoveParameters_exportGlyphsSet_keepGlyphsSet_reencodeGlyphsSet_removeGlyphsSet_error_(instance: GSInstance) -> tuple[bool, set, set, set, set, 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` when the parameters could be parsed.

## Discussion

The output sets are created only when matching parameters are present.

