Embed text fonts and fix preview table rule coordinates

This commit is contained in:
gloamxun committed 2026-10-19 21:07:25 +08:00
1 parent b119c57e8e
commit 2856506d65
6 files changed
+37 -35

No files matched your search

+7 -5
View File
@@ -120,9 +120,10 @@ See `docs/ROADMAP.md` for concrete implementation plans.
- `examples/hello.tex`, `examples/boxes.tex`, `examples/compat.tex` compile to
one A4 page each; the arXiv template project compiles to 3 Letter pages.
- ASCII-only documents use non-embedded Base-14 Times/Courier (arXiv PDF is
about 0.7 MB); documents with accented/non-WinAnsi text embed Liberation
faces. Tables use natural column widths and centered rules.
- All text faces are embedded Liberation Serif/Mono/Sans (arXiv PDF is about
3.6 MB and `pdffonts` reports only embedded CID TrueType faces); this avoids
viewer-dependent glyph substitution. Tables use natural column widths and
centered rules; preview and PDF share the same table line coordinates.
- `cargo fmt --check` passes; `cargo test --offline` (53 tests: 49 compiler
integration tests + 4 server tests) covers the three examples, the arXiv
fixture, figure/table floats (top and bottom), newpage, page styles and `\thispagestyle`, SVG/PDF output,
@@ -134,10 +135,11 @@ See `docs/ROADMAP.md` for concrete implementation plans.
- Compiler integration tests: 49; server tests: 4; total 53.
- `cargo fmt --check` passes.
- arXiv fixture: 3 Letter pages, ~701 KB, Base-14 Times/Courier only.
- arXiv fixture: 3 Letter pages, ~3.6 MB, embedded Liberation faces only.
- Title/author/date/Introduction baselines within 0.3 pt of the XeLaTeX
reference; page 1 keeps the closing section-2 line above the footnote.
- Table 61.6 mm wide (reference 61.2 mm) with `\multicolumn` spans and
partial `\cmidrule` rules.
partial `\cmidrule` rules; table rules in the SVG preview use absolute page
coordinates, matching the PDF.
- Remaining blocker: PDF link annotations (`/Annots`); printpdf 0.3.4 has
no annotation API, so clickable `\href`/`\url` need a writer extension.