Keep font kerns at the start of wrapped TeX lines

This commit is contained in:
gloamxun committed 2026-11-29 08:34:22 +08:00
1 parent 57ce7116ad
commit a8dfa14b7e
5 files changed
+38 -2

No files matched your search

@@ -612,7 +612,7 @@ fn discardable(n: &TextNode) -> bool {
| TextNode::NamedGlue(_, _)
| TextNode::ConditionalMathGlue
| TextNode::Leaders(_)
| TextNode::Kern { .. }
| TextNode::Kern { explicit: true, .. }
| TextNode::SpaceAdjustment(_)
| TextNode::MathBoundary { .. }
| TextNode::Direction(_)
@@ -219,7 +219,7 @@ impl BreakNode {
matches!(
self,
Self::Glue(_)
| Self::Kern { .. }
| Self::Kern { explicit: true, .. }
| Self::SpaceAdjustment(_)
| Self::MathBoundary { .. }
| Self::Direction