Implement native text accents for unmodified LaTeX jobs

This commit is contained in:
gloamxun committed 2026-11-20 16:15:30 +08:00
1 parent ca60c66a17
commit 4eeb5686b8
16 files changed
+269 -18

No files matched your search

@@ -332,6 +332,7 @@ impl NativeBox {
}
TextNode::Indent(w)
| TextNode::MathBoundary { width: w, .. }
| TextNode::AccentKern(w)
| TextNode::Kern { width: w, .. } => HorizontalItem::Box(HorizontalBox {
width: *w as i64,
..HorizontalBox::default()
@@ -612,6 +613,7 @@ pub(super) fn hpack(
}
TextNode::Indent(w)
| TextNode::MathBoundary { width: w, .. }
| TextNode::AccentKern(w)
| TextNode::Kern { width: w, .. } => width += *w as i64,
TextNode::Glue(g) | TextNode::NamedGlue(g, _) => {
width += g.width as i64;