Initializer
init(url:)initWithURL:error: initWithURL_error_
Creates a font by reading a Glyphs file or package.
Declaration
init(url fileURL: URL) throwsDeclaration
- (instancetype) initWithURL:(NSURL *) fileURL error:(NSError **) error;Declaration
initWithURL_error_(fileURL: NSURL) -> tuple[GSFont, NSError]Parameters
fileURLThe location of a Glyphs file or package.
Parameters
fileURLThe location of a Glyphs file or package.
errorOn output, a pointer to an error object that describes why the method failed, or
nilif no error occurred. If you are not interested in the error information, passnilfor this parameter.
Discussion
Returns nil when the file does not exist or its contents cannot be read.
See Also
Creating a Font
Creates a font from the contents of a Glyphs file.
Creates a font from a Glyphs property-list representation.
Creates a font from a Glyphs property-list representation with an associated file path.