Initializer
init(dict:filePath:) initWithDict:filePath:error: initWithDict_filePath_error_
Creates a font from a Glyphs property-list representation with an associated file path.
Declaration
init(dict fontDict: [String : Any], filePath: String?) throwsDeclaration
- (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
fontDictA dictionary produced from a Glyphs font representation.
filePathThe path associated with the representation, or
nilwhen it has no file location.
Parameters
fontDictA dictionary produced from a Glyphs font representation.
filePathThe path associated with the representation, or
nilwhen it has no file location.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
The file path is used to resolve external resources referenced by the representation.
See Also
Creating a Font
Creates a font by reading a Glyphs file or package.
Creates a font from the contents of a Glyphs file.
Creates a font from a Glyphs property-list representation.