Initializer
init(data:)initWithData:error: initWithData_error_
Creates a font from the contents of a Glyphs file.
Declaration
init(data buffer: Data) throwsDeclaration
- (instancetype) initWithData:(NSData *) buffer error:(NSError **) outError;Declaration
initWithData_error_(buffer: bytes) -> tuple[GSFont, NSError]Parameters
bufferThe serialized contents of a Glyphs file.
Parameters
bufferThe serialized contents of a Glyphs file.
outErrorOn 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
Creates a font by reading a Glyphs file or package.
Creates a font from a Glyphs property-list representation.
Creates a font from a Glyphs property-list representation with an associated file path.