Declaration

init(dict fontDict: [String : Any], filePath: String?) throws

Declaration

- (instancetype) initWithDict:(NSDictionary<NSString *,id> *) fontDict filePath:(NSString *) filePath error:(NSError **) error;

Declaration

initWithDict_filePath_error_(fontDict: dict[str, object], filePath: str) -> tuple[GSFont, NSError]

Parameters

fontDict

A dictionary produced from a Glyphs font representation.

filePath

The path associated with the representation, or nil when it has no file location.

Parameters

fontDict

A dictionary produced from a Glyphs font representation.

filePath

The path associated with the representation, or nil when it has no file location.

error

On output, a pointer to an error object that describes why the method failed, or nil if no error occurred. If you are not interested in the error information, pass nil for this parameter.

Discussion

The file path is used to resolve external resources referenced by the representation.

See Also

Creating a Font