Handle unclaimed XeTeX specials at shipout

This commit is contained in:
gloamxun committed 2026-11-28 06:04:09 +08:00
1 parent e2af618e65
commit 885911485e
10 files changed
+273 -21

No files matched your search

+5 -1
View File
@@ -1201,6 +1201,8 @@ fn page_content(
content.push(b'\n');
}
DisplayItem::PdfColor { .. } => unreachable!("color handled before text"),
// The text runs above are closed without changing the graphics transform.
DisplayItem::PdfGraphics { operation: PdfGraphics::TextBoundary, .. } => {}
DisplayItem::PdfGraphics { x, y, operation } => {
let xdv = list.pdf.as_ref().is_some_and(|pdf| pdf.driver == PdfDriver::Xdv);
let device_origin = list.units == DisplayUnits::TeX && !xdv;
@@ -1238,7 +1240,9 @@ fn page_content(
.map(crate::pdf_image::real);
content.push_str(&format!("{a} {b} {c} {d} {e} {f} cm\n"));
}
PdfGraphics::Literal { .. } => unreachable!("literal handled before text"),
PdfGraphics::Literal { .. } | PdfGraphics::TextBoundary => {
unreachable!("handled before graphics transforms")
}
}
}
}