# `GSGlyph initWithGlyphsParser:format:`

*Initializer*

Creates a glyph from a Glyphs file representation at the current parser position.

## Declaration

```swift
init?(glyphsParser pInfo: UnsafeMutablePointer<GSPlistParseInfo>, format formatVersion: GSFormatVersion)
```

```objc
- (instancetype) initWithGlyphsParser:(GSPlistParseInfo *) pInfo format:(GSFormatVersion) formatVersion;
```

```python
initWithGlyphsParser_format_(pInfo: GSPlistParseInfo, formatVersion: GSFormatVersion) -> GSGlyph
```

## Parameters

- `pInfo` — A parser positioned after the opening dictionary delimiter.
- `formatVersion` — The Glyphs file format version used to interpret the representation.

## Discussion

Returns `nil` when the representation is invalid.

## See Also

### Creating a Glyph

- [`GSGlyph initWithName:`](/Core/GlyphsCore/GSGlyph/initWithName:) — Creates a glyph with a name and no layers.
- [`GSGlyph initFast`](/Core/GlyphsCore/GSGlyph/initFast) — Creates a minimally configured glyph for bulk construction.
- [`GSGlyph initWithDict:format:`](/Core/GlyphsCore/GSGlyph/initWithDict:format:) — Creates a glyph from a Glyphs file dictionary representation.
- [`GSGlyph initWithFile:format:error:`](/Core/GlyphsCore/GSGlyph/initWithFile:format:error:) — Creates a glyph by reading a `.glyph` file.

