Instance Method
nearestMaster(from:alongAxisAt:towardHigherValues:)
The nearest font master in one direction along an axis, or nil when none exists.
Not available in Objective-C.Not available in Python.
Declaration
func nearestMaster(from location: [CGFloat], alongAxisAt axisIndex: Int, towardHigherValues: Bool) -> (masterID: String, position: CGFloat)?Parameters
locationOne internal coordinate for each font axis, in font axis order.
axisIndexThe index of the axis along which to search.
towardHigherValuesWhether to search toward greater rather than smaller coordinates.
Discussion
Font masters at the same coordinates on every other axis are considered. Returns nil when the coordinate count or axis index does not match the font 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.
Adds the corresponding interpolated Smart Component layers to a target glyph.
Replaces layer contents with interpolation from the remaining layers in each layer group.