# `GSGlyphsInfo convertToLegacyNames:font:`

*Instance Method*

Converts all glyph names to production names

## Declaration

```swift
func convert(toLegacyNames string: String, font: GSFont?) -> String
```

```objc
- (NSString *) convertToLegacyNames:(NSString *) string font:(GSFont *) font;
```

```python
convertToLegacyNames_font_(string: str, font: GSFont) -> str
```

## Parameters

- `string` — A string that contains glyph names like feature code.

## Return Value

The string with converted names.

## Discussion

This is useful for OT-feature code

