Function contour_to_path

Source
pub(crate) fn contour_to_path<C: PointCoord>(
    points: impl ExactSizeIterator<Item = ContourPoint<C>>,
    first_point: ContourPoint<C>,
    last_point: ContourPoint<C>,
    style: PathStyle,
    pen: &mut impl OutlinePen,
) -> Result<(), ToPathError>
Expand description

Generates a path from an iterator of contour points.

Note that this requires the last point of the contour to be passed separately to support FreeType style path conversion when the contour begins with an off curve point. The points iterator should still yield the last point as well.

This is more general than to_path and exists to support cases (such as autohinting) where the source outline data is in a different format.