# `GSFont masterNearestToPosition:`

*Instance Method*

Returns the master nearest to an internal design-space position.

## Declaration

```swift
func masterNearest(toPosition position: UnsafeMutablePointer<CGFloat>) -> Any?
```

```objc
- (id) masterNearestToPosition:(CGFloat *) position;
```

```python
masterNearestToPosition_(position: float) -> object
```

## Discussion

The position buffer must contain one internal coordinate per font axis, in font-axis order.

## See Also

### Master Locations

- [`GSFont masterNearestToPosition:glyph:`](/Core/GlyphsCore/GSFont/masterNearestToPosition:glyph:) — Returns the master or Intermediate layer nearest to an internal design-space position.
- [`GSFont masterAtPosition:`](/Core/GlyphsCore/GSFont/masterAtPosition:) — Returns the master at an internal design-space position.
- [`GSFont masterRangesInternMin:internDefault:internMax:externMin:externDefault:externMax:mastersIntern:mastersExtern:defaultMaster:error:`](/Core/GlyphsCore/GSFont/masterRangesInternMin:internDefault:internMax:externMin:externDefault:externMax:mastersIntern:mastersExtern:defaultMaster:error:) — Calculates internal and external coordinate ranges for the font axes.
- [`GSFont masterRangesFor:masters:customParameters:internMin:internDefault:internMax:externMin:externDefault:externMax:mastersIntern:mastersExtern:defaultMaster:error:`](/Core/GlyphsCore/GSFont/masterRangesFor:masters:customParameters:internMin:internDefault:internMax:externMin:externDefault:externMax:mastersIntern:mastersExtern:defaultMaster:error:) — Calculates internal and external coordinate ranges for font axes and masters.

