Declaration

func write(_ font: GSFont!, to URL: URL!) throws

Declaration

- (BOOL) writeFont:(GSFont *) font toURL:(NSURL *) URL error:(NSError **) error;

Declaration

writeFont_toURL_error_(font: GSFont, URL: NSURL) -> tuple[bool, NSError]

Parameters

font

The font to export.

URL

The URL to save the font to.

Parameters

font

The font to export.

URL

The URL to save the font to.

error

On return, If the document contents could not be read, a pointer to an error object that encapsulates the reason they could not be read.

Discussion

This is a save operation so it should be able to read the font back in. Otherwise use exportFont:

Return Value

YES if the operation was successful; otherwise, NO.

Discussion

This is a save operation so it should be able to read the font back in. Otherwise use exportFont: