Instance Method
generateVariable(_:)generateVariable:error: generateVariable_error_
Generates a variable font source from an instance.
Declaration
func generateVariable(_ instance: GSInstance) throws -> GSFontDeclaration
- (GSFont *) generateVariable:(GSInstance *) instance error:(NSError **) error;Declaration
generateVariable_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 the masters and glyph set configured by the variable instance.