Instance Method
nearestInstance(toPosition:)
Returns the instance nearest to an internal design-space position.
Not available in Objective-C.Not available in Python.
Declaration
func nearestInstance(toPosition position: [CGFloat]) -> (instance: GSInstance, distance: CGFloat)?Discussion
The position array must contain one internal coordinate per font axis, in font-axis order.