Skip to content

Commit 65d8c7d

Browse files
s3bkjdm
authored andcommitted
Expose Contour points.
1 parent 842a897 commit 65d8c7d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

content/src/outline.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,12 @@ impl Contour {
486486
self.closed
487487
}
488488

489+
/// Returns the points (on curve and control points) of the Contour
490+
#[inline]
491+
pub fn points(&self) -> &[Vector2F] {
492+
&self.points
493+
}
494+
489495
/// Returns the position of the point (which can be an on-curve point or a control point) with
490496
/// the given index.
491497
///

0 commit comments

Comments
 (0)