Initializer
init(file:format:) initWithFile:format:error: initWithFile_format_error_
Creates a glyph by reading a .glyph file.
Declaration
init(file filePath: String, format: GSFormatVersion) throwsDeclaration
- (instancetype) initWithFile:(NSString *) filePath format:(GSFormatVersion) format error:(NSError **) error;Declaration
initWithFile_format_error_(filePath: str, format: GSFormatVersion) -> tuple[GSGlyph, NSError]Parameters
filePathThe path to the
.glyphfile.formatThe Glyphs file format version used to interpret the file.
Parameters
filePathThe path to the
.glyphfile.formatThe Glyphs file format version used to interpret the file.
errorOn failure, an error describing the problem.
Discussion
Returns nil when the file cannot be read or its contents are invalid.
See Also
Creating a Glyph
Creates a glyph with a name and no layers.
Creates a glyph from a Glyphs file dictionary representation.
Creates a glyph from a Glyphs file representation at the current parser position.
See Also
Creating a Glyph
Creates a glyph with a name and no layers.
Creates a minimally configured glyph for bulk construction.
Creates a glyph from a Glyphs file dictionary representation.
Creates a glyph from a Glyphs file representation at the current parser position.