Instance Method
masterNearest(toPosition:glyph:) masterNearestToPosition:glyph: masterNearestToPosition_glyph_
Returns the master or Intermediate layer nearest to an internal design-space position.
Declaration
func masterNearest(
toPosition position: UnsafeMutablePointer<CGFloat>,
glyph: GSGlyph?
) -> Any?Declaration
- (id) masterNearestToPosition:(CGFloat *) position
glyph:(GSGlyph *) glyph;Declaration
masterNearestToPosition_glyph_(
position: float,
glyph: GSGlyph
) -> objectParameters
glyphThe glyph whose Intermediate layers are included, or
nilto use only masters.
Discussion
The position buffer must contain one internal coordinate per font axis, in font-axis order. Active Intermediate layers of the glyph are included when a glyph is provided.
See Also
Master Locations
Returns the master nearest to an internal design-space position.
Returns the master at an internal design-space position.
Calculates internal and external coordinate ranges for the font axes.
Calculates internal and external coordinate ranges for font axes and masters.