Instance Method
generateInstance(_:)generateInstance:error: generateInstance_error_
Generates a static font from an instance.
Declaration
func generateInstance(_ instance: GSInstance) throws -> GSFontDeclaration
- (GSFont *) generateInstance:(GSInstance *) instance error:(NSError **) error;Declaration
generateInstance_error_(instance: GSInstance) -> tuple[GSFont, NSError]Parameters
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.
Return Value
The generated font, or nil when generation fails.
Discussion
The returned font contains one interpolated master and the glyph set configured by the instance export parameters.