# `GSComputeWidthSamplesFromExplicitPenPoints`

*Function*

## Declaration

```swift
func GSComputeWidthSamplesFromExplicitPenPoints(_ segments: [GSPathSegment], _ path: GSPath)
```

```objc
void GSComputeWidthSamplesFromExplicitPenPoints(NSArray<GSPathSegment *> *segments, GSPath *path);
```

```python
GSComputeWidthSamplesFromExplicitPenPoints(segments: list[GSPathSegment], path: GSPath)
```

## See Also

### Curve Offsetting

- [`GSCalculateFactorFromUnitVector`](/Core/GlyphsCore/GSCalculateFactorFromUnitVector)
- [`GSComputePenPoint`](/Core/GlyphsCore/GSComputePenPoint)
- [`GSFineTuneCurve`](/Core/GlyphsCore/GSFineTuneCurve)
- [`GSOffsetCurveSegment`](/Core/GlyphsCore/GSOffsetCurveSegment)
- [`GSOffsetCurveSegmentUneven`](/Core/GlyphsCore/GSOffsetCurveSegmentUneven)
- [`GSPenPointWithDefaultValue`](/Core/GlyphsCore/GSPenPointWithDefaultValue)
- [`GSPositionOffset`](/Core/GlyphsCore/GSPositionOffset)

