Instance Method
write(_:to:) writeFont:toURL:error: writeFont_toURL_error_
Saves a Font object to the specified URL.
Declaration
func write(_ font: GSFont!, to URL: URL!) throwsDeclaration
- (BOOL) writeFont:(GSFont *) font toURL:(NSURL *) URL error:(NSError **) error;Declaration
writeFont_toURL_error_(font: GSFont, URL: NSURL) -> tuple[bool, NSError]Parameters
fontThe font to export.
URLThe URL to save the font to.
Parameters
fontThe font to export.
URLThe URL to save the font to.
errorOn 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: