diff --git a/crates/text/src/positioned.rs b/crates/text/src/positioned.rs index 81afdbae9..cb749cac5 100644 --- a/crates/text/src/positioned.rs +++ b/crates/text/src/positioned.rs @@ -71,6 +71,8 @@ pub struct PositionedGlyph { pub warichu: Option, /// 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 PositionedGlyph { @@ -179,6 +181,7 @@ mod tests { width_start: 1.0, warichu: None, warichu_line: 0.0, + off_path: false, } } #[test]