From 65d8c7d6d9e4582cce47098930f3b02b6b1f3031 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 13 Aug 2021 12:29:21 +0300 Subject: [PATCH] Expose Contour points. --- content/src/outline.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/src/outline.rs b/content/src/outline.rs index 589d3cd6..c0493f40 100644 --- a/content/src/outline.rs +++ b/content/src/outline.rs @@ -486,6 +486,12 @@ impl Contour { self.closed } + /// Returns the points (on curve and control points) of the Contour + #[inline] + pub fn points(&self) -> &[Vector2F] { + &self.points + } + /// Returns the position of the point (which can be an on-curve point or a control point) with /// the given index. ///