Instance Method
layerNearest(toPosition:associatedMasterId:onlyBraceLayer:tolerance:) layerNearestToPosition:associatedMasterId:onlyBraceLayer:tolerance: layerNearestToPosition_associatedMasterId_onlyBraceLayer_tolerance_
The layer nearest to a design-space position within an exclusive distance tolerance, or nil when no layer qualifies.
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) -> GSLayerParameters
positionA buffer containing one internal coordinate for each font axis, in font axis order.
associatedMasterIdThe required associated font master identifier, or
nilto consider all layers.onlyBraceLayerWhether to consider only Intermediate layers.
toleranceThe exclusive maximum Euclidean distance from
position.
See Also
Layers
The layers keyed by their layer identifiers.
The layers ordered by font master, with each master layer before the other layers associated with that font master.
The number of layers.
The layer at an index in insertion order.
The layer for an identifier.
The existing layer for an identifier, or
nilwhen the glyph does not contain it.Adds or replaces a layer under an identifier.
Removes the layer for an identifier.
The first layer with an exact matching name, or
nilwhen no layer matches.The first layer with an exact matching name and associated font master, or
nilwhen no layer matches.One layer for each font master identifier, in the requested order.
The first layer with a matching derived layer key, or
nilwhen no layer matches.Returns the layer at the given design space location.
Orders layers by font master, placing each master layer before the other layers associated with that font master.
Marks the derived layer keys of all layers for reevaluation.