Apply native font protrusion during line breaking and packing

This commit is contained in:
gloamxun committed 2026-11-20 17:18:25 +08:00
1 parent 361e8d070f
commit 4777d66fc8
22 files changed
+441 -32

No files matched your search

@@ -165,7 +165,9 @@ impl Executor {
.as_mut()
.expect("unhbox starts an actual paragraph")
.nodes
.extend(nodes),
.extend(
nodes.into_iter().filter(|node| !matches!(node, TextNode::MarginKern { .. })),
),
BoxContent::Vertical(nodes) => self.append_unboxed_vertical(nodes),
}
Ok(())