Declaration

func layerNearest(toPosition position: UnsafeMutablePointer<CGFloat>, associatedMasterId: String?, onlyBraceLayer: Bool, tolerance: CGFloat) -> GSLayer?

Declaration

- (GSLayer *) layerNearestToPosition:(CGFloat *) position associatedMasterId:(NSString *) associatedMasterId onlyBraceLayer:(BOOL) onlyBraceLayer tolerance:(CGFloat) tolerance;

Declaration

layerNearestToPosition_associatedMasterId_onlyBraceLayer_tolerance_(position: float, associatedMasterId: str, onlyBraceLayer: bool, tolerance: float) -> GSLayer

Parameters

position

A buffer containing one internal coordinate for each font axis, in font axis order.

associatedMasterId

The required associated font master identifier, or nil to consider all layers.

onlyBraceLayer

Whether to consider only Intermediate layers.

tolerance

The exclusive maximum Euclidean distance from position.

See Also

Layers