From 48dcbe61b1d4887f7b08f51b76e54cfb00d51c75 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sun, 15 Nov 2026 19:02:30 +0000 Subject: [PATCH] Retain off-path glyph state --- crates/text/src/positioned.rs | 3 +++ 1 file changed, 3 insertions(+) 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]