Instance Method
interpolatedLayer(for:masters:scale:keepSmart:smartSettings:layerName:)
A detached layer interpolated for an instance together with its additional layers.
Not available in Objective-C.Not available in Python.
Declaration
func interpolatedLayer(for instance: GSInstance, masters: [GSFontMaster], scale: CGFloat, keepSmart: Bool, smartSettings: [AnyHashable : Any]? = nil, layerName: String? = nil) throws -> (layer: GSLayer, additionalLayers: [GSLayer])Parameters
instanceThe instance that supplies the interpolation location and settings.
mastersThe font masters participating in the interpolation.
scaleThe coordinate scale applied to the result.
keepSmartWhether Smart Components remain components when possible.
smartSettingsSmart Component settings applied before interpolation, or
nilfor no override.layerNameThe name of corresponding source layers to interpolate, or
nilfor the primary layers.
Discussion
The additional layers contain interpolated color and corner layers.
See Also
Interpolation
A detached layer formed by applying interpolation coefficients to compatible source layers.
Adds the corresponding interpolated Smart Component layers to a target glyph.
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.