Retain off-path glyph state

This commit is contained in:
Dylan M. Taylor
2026-11-15 19:02:30 +00:00
parent 375617e060
commit 48dcbe61b1
+3
View File
@@ -71,6 +71,8 @@ pub struct PositionedGlyph<A: Artwork> {
pub warichu: Option<usize>,
/// Warichu block baseline offset.
pub warichu_line: f64,
/// Glyph lies before an open path and is retained for caret mapping only.
pub off_path: bool,
}
impl<A: Artwork> PositionedGlyph<A> {
@@ -179,6 +181,7 @@ mod tests {
width_start: 1.0,
warichu: None,
warichu_line: 0.0,
off_path: false,
}
}
#[test]