Allocate dedicated PDF spaces in the native font catalog at shipout

This commit is contained in:
gloamxun committed 2026-11-21 07:11:48 +08:00
1 parent 4bd7f1e08e
commit 584b708487
11 files changed
+339 -93

No files matched your search

@@ -208,6 +208,7 @@ pub(super) struct BoxLayout {
}
pub(super) enum GeometryItem {
Output,
Paint(crate::math_engine_tex::PositionedItem),
PdfColor,
PdfGraphics { x: i64, y: i64 },
@@ -743,7 +744,11 @@ impl NativeBox {
emit(GeometryItem::PdfTextSpace { x, y, operation });
return;
}
BoxPaint::RowStart(_) | BoxPaint::PdfLink(_, _) | BoxPaint::Output(_) => return,
BoxPaint::Output(_) => {
emit(GeometryItem::Output);
return;
}
BoxPaint::RowStart(_) | BoxPaint::PdfLink(_, _) => return,
};
if let Some(child) = &b.math_geometry {
for p in &child.items {