Initializer
init(dict:)initWithDict:error: initWithDict_error_
Creates a font from a Glyphs property-list representation.
Declaration
init(dict fontDict: [String : Any]) throwsDeclaration
- (instancetype) initWithDict:(NSDictionary<NSString *,id> *) fontDict error:(NSError **) error;Declaration
initWithDict_error_(fontDict: dict[str, object]) -> tuple[GSFont, NSError]Parameters
fontDictA dictionary produced from a Glyphs font representation.
Parameters
fontDictA dictionary produced from a Glyphs font representation.
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 representation cannot be read.
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 with an associated file path.