Instance Method
interpolateFontMaster(_:scale:thin:) interpolateFontMaster:scale:thin:error: interpolateFontMaster_scale_thin_error_
Interpolates a master for an instance.
Declaration
func interpolateFontMaster(_ instance: GSInstance, scale: CGFloat, thin: Bool) throws -> GSFontMasterDeclaration
- (GSFontMaster *) interpolateFontMaster:(GSInstance *) instance scale:(CGFloat) scale thin:(BOOL) thin error:(NSError **) error;Declaration
interpolateFontMaster_scale_thin_error_(instance: GSInstance, scale: float, thin: bool) -> tuple[GSFontMaster, NSError]Parameters
scaleThe scale applied to interpolated metrics and outlines.
thinPass
YESwhen generating a lightweight preview master.
Parameters
scaleThe scale applied to interpolated metrics and outlines.
thinPass
YESwhen generating a lightweight preview master.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 interpolated master, or nil when interpolation fails.
Discussion
The returned master contains interpolated master data for the instance location.