# `GSFont initWithGlyphsFileAtPath:error:`

*Initializer*

Creates a font by reading its Glyphs file representation.

## Declaration

```swift
init(glyphsFileAtPath path: String) throws
```

```objc
- (instancetype) initWithGlyphsFileAtPath:(NSString *) path error:(NSError **) outError;
```

```python
initWithGlyphsFileAtPath_error_(path: str) -> tuple[GSFont, NSError]
```

## Parameters

- `path` — The path to a Glyphs file or package.
- `outError` — On failure, an error describing the problem.

## Discussion

This method is reserved for framework use. Use [`GSFont initWithURL:error:`](/Core/GlyphsCore/GSFont/initWithURL:error:) to read a font from a file or package.

