Apply native automatic kerns and protrusion at real line edges

This commit is contained in:
gloamxun committed 2026-11-21 06:00:55 +08:00
1 parent f66a5a7e20
commit 1822ab2d32
22 files changed
+260 -36

No files matched your search

@@ -336,6 +336,7 @@ impl NativeBox {
TextNode::Indent(w)
| TextNode::MathBoundary { width: w, .. }
| TextNode::AccentKern(w)
| TextNode::AutoKern(w)
| TextNode::MarginKern { width: w, .. }
| TextNode::Kern { width: w, .. } => HorizontalItem::Box(HorizontalBox {
width: *w as i64,
@@ -618,6 +619,7 @@ pub(super) fn hpack(
TextNode::Indent(w)
| TextNode::MathBoundary { width: w, .. }
| TextNode::AccentKern(w)
| TextNode::AutoKern(w)
| TextNode::MarginKern { width: w, .. }
| TextNode::Kern { width: w, .. } => width += *w as i64,
TextNode::Glue(g) | TextNode::NamedGlue(g, _) => {