Skip to content

Commit

Permalink
GlyphPathBuilder: support contours starting with offcurves, or withou…
Browse files Browse the repository at this point in the history
…t oncurves

Fixes #349
  • Loading branch information
anthrotype committed Aug 8, 2023
1 parent eadadb7 commit 699e100
Show file tree
Hide file tree
Showing 4 changed files with 331 additions and 102 deletions.
2 changes: 2 additions & 0 deletions fontir/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ pub enum PathConversionError {
num_offcurve: usize,
points: Vec<Point>,
},
#[error("{glyph_name} contour contains a 'move' that is not the first point: {point:?}")]
MoveAfterFirstPoint { glyph_name: GlyphName, point: Point },
}

#[derive(Debug, Error)]
Expand Down
Loading

0 comments on commit 699e100

Please sign in to comment.