# `GSPath initWithGlyphsParser:format:`

*Initializer*

Creates a path from the 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) -> GSPath
```

## Parameters

- `formatVersion` — The Glyphs file format version used to interpret the representation.

## See Also

### Creating a Path

- [`GSPath initWithDict:format:`](/Core/GlyphsCore/GSPath/initWithDict:format:) — Creates a path from a Glyphs file dictionary representation.
- [`GSPath pathWithString:isClosed:`](/Core/GlyphsCore/GSPath/pathWithString:isClosed:) — Creates a path from a sequence of node element strings.
- [`GSPath pathWithRect:`](/Core/GlyphsCore/GSPath/pathWithRect:) — Creates a closed rectangular path enclosing the rectangle.
- [`GSPath circleWithRect:`](/Core/GlyphsCore/GSPath/circleWithRect:) — Creates a closed cubic path approximating an ellipse inside the rectangle.
- [`GSPath circleWithCenter:radius:`](/Core/GlyphsCore/GSPath/circleWithCenter:radius:) — Creates a closed cubic path approximating a circle.
- [`GSPath ellipseWithCenter:radius1:radius2:angle:`](/Core/GlyphsCore/GSPath/ellipseWithCenter:radius1:radius2:angle:) — Creates a closed cubic path approximating an ellipse.

