Instance Method
interpolateSmartLayer(_:instance:scale:targetGlyph:) interpolateSmartLayer:instance:scale:targetGlyph: interpolateSmartLayer_instance_scale_targetGlyph_
Adds the corresponding interpolated Smart Component layers to a target glyph.
Declaration
func interpolateSmartLayer(_ baseLayer: GSLayer, instance: GSInstance, scale: CGFloat, targetGlyph: GSGlyph)Declaration
- (void) interpolateSmartLayer:(GSLayer *) baseLayer instance:(GSInstance *) instance scale:(CGFloat) scale targetGlyph:(GSGlyph *) targetGlyph;Declaration
interpolateSmartLayer_instance_scale_targetGlyph_(baseLayer: GSLayer, instance: GSInstance, scale: float, targetGlyph: GSGlyph)Parameters
baseLayerThe primary interpolated layer whose Smart Component coordinates are completed.
instanceThe instance that supplies the interpolation location.
scaleThe coordinate scale applied to the added layers.
targetGlyphThe glyph that receives the added layers.
Discussion
This method has no effect when the glyph has no glyph-local axes.
See Also
Interpolation
A detached layer formed by applying interpolation coefficients to compatible source layers.
A detached layer interpolated for an instance together with its additional layers.
Replaces layer contents with interpolation from the remaining layers in each layer group.
The nearest font master in one direction along an axis, or
nilwhen none exists.
See Also
Interpolation
A detached layer formed by applying interpolation coefficients to compatible source layers.
Replaces layer contents with interpolation from the remaining layers in each layer group.
Finds the nearest font master in one direction along an axis while keeping the other axis coordinates fixed.