Instance Method
save(to:format:context:) saveToFile:format:context:error: saveToFile_format_context_error_
Writes the layer in the specified Glyphs file format.
Declaration
func save(to file: UnsafeMutablePointer<FILE>, format formatVersion: GSFormatVersion, context: GSSaveContext) throwsDeclaration
- (BOOL) saveToFile:(FILE *) file format:(GSFormatVersion) formatVersion context:(GSSaveContext *) context error:(NSError **) error;Declaration
saveToFile_format_context_error_(file: FILE, formatVersion: GSFormatVersion, context: GSSaveContext) -> tuple[bool, NSError]Parameters
fileThe open file to which to write.
formatVersionThe Glyphs file format version to use.
contextThe context shared by the enclosing save operation.
Parameters
fileThe open file to which to write.
formatVersionThe Glyphs file format version to use.
contextThe context shared by the enclosing save operation.
errorOn failure, information about the error.
Return Value
Whether the layer was written.
See Also
Encoding
A property-list representation for the specified Glyphs file format version.
An attribute representation for the specified Glyphs file format version.
Values deferred until the layer can complete format-dependent decoding.
Stores a value for format-dependent decoding after the layer hierarchy is available.
Completes format-dependent decoding after the layer has been attached to its object hierarchy.
Encodes layer elements as Glyphs property-list data.