Rejoin XeTeX OpenType word fragments while packing horizontal boxes

This commit is contained in:
gloamxun committed 2026-11-25 22:29:53 +08:00
1 parent fa27e0985f
commit 3e9a639f1d
6 files changed
+156 -4

No files matched your search

@@ -250,6 +250,7 @@ impl Executor {
!matches!(
n,
TextNode::Glyph { .. }
| TextNode::OpenType(_)
| TextNode::Kern { .. }
| TextNode::AccentKern(_)
| TextNode::AutoKern(_)
@@ -776,7 +777,13 @@ impl Executor {
} else {
b.nodes
};
boxes::hpack_with_direction_report(nodes, frame.spec, frame.span, &self.state)
if self.state.input_profile() == InputProfile::XeTeX {
self.reads.insert(Dependency::Parameter(Parameter::XeTeXuseglyphmetrics));
}
boxes::hpack_with_direction_report(
nodes, frame.spec, frame.span, &self.state,
Some((&mut self.steps, self.limits.steps)),
)
} else {
boxes::vpack(
self.vertical.take_nodes(),