Add a minimal PDF writer for route-D display lists

This commit is contained in:
gloamxun committed 2026-10-20 18:09:55 +08:00
1 parent 946f8b1b76
commit b6fab85f61
3 files changed
+113

No files matched your search

+2
View File
@@ -251,3 +251,5 @@ M3 painter prototype: `Page::display_list()` / `Halign::display_list()` produce
Paragraph painter: `Unit::paragraph` now stores `VerticalItem::Paragraph`, and `Page::display_list()` paints each line's `HorizontalBox` characters at their line advance. Boxes created by hyphenation carry `-`; justification is approximated by item widths.
Math painter: stores ; paints symbols, rows, scripts, fractions (with a rule), roots, delimiters, accents, underlines, boxes and stacks. Script/fraction positions are simplified TeX geometry.
PDF writer: `src/pdf.rs` emits a one-page PDF 1.4 for a `DisplayList` (Base-14 Times-Roman text, filled rectangle rules, US Letter media box). It is a structural backend spike; TFM/NFSS fonts, XObjects and multi-page output are still open.