Declaration

init(data buffer: Data) throws

Declaration

- (instancetype) initWithData:(NSData *) buffer error:(NSError **) outError;

Declaration

initWithData_error_(buffer: bytes) -> tuple[GSFont, NSError]

Parameters

buffer

The serialized contents of a Glyphs file.

Parameters

buffer

The serialized contents of a Glyphs file.

outError

On failure, an error describing the problem.

Discussion

Returns nil when the data does not contain a valid Glyphs font representation.

See Also

Creating a Font