Declaration

func save(to file: UnsafeMutablePointer<FILE>, format formatVersion: GSFormatVersion, context: GSSaveContext) throws

Declaration

- (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

file

An open writable file positioned where the glyph content is written.

formatVersion

The source format used for the representation.

context

The options and shared state for the save operation.

Parameters

file

An open writable file positioned where the glyph content is written.

formatVersion

The source format used for the representation.

context

The options and shared state for the save operation.

error

On return, an error that prevented encoding.

Discussion

The save context controls optional data such as layers and the last-change timestamp.

Return Value

Whether the glyph was encoded successfully.

Discussion

The save context controls optional data such as layers and the last-change timestamp.

See Also

Encoding