Declaration

func nearestMaster(from location: [CGFloat], alongAxisAt axisIndex: Int, towardHigherValues: Bool) -> (masterID: String, position: CGFloat)?

Parameters

location

One internal coordinate for each font axis, in font axis order.

axisIndex

The index of the axis along which to search.

towardHigherValues

Whether 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