Use a 110-glyph minimal font tier for ASCII documents

This commit is contained in:
gloamxun committed 2026-10-19 22:49:30 +08:00
1 parent 769e3cdf17
commit 9b367e87ee
16 files changed
+64 -14

No files matched your search

+3 -3
View File
@@ -123,7 +123,7 @@ 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.
- 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
0.29 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` (58 tests: 54 compiler
@@ -137,7 +137,7 @@ See `docs/ROADMAP.md` for concrete implementation plans.
- Compiler integration tests: 53; server tests: 4; total 57.
- `cargo fmt --check` passes.
- arXiv fixture: 3 Letter pages, ~0.53 MB; four serif faces and one monospace face embedded (bold/italic monospace falls back to the regular face). The bundled SubsetTTF faces are pyftsubset outputs with retained glyph ids and a filtered legacy kern table; a second smaller Latin-1/Greek tier is selected when the document charset fits.
- arXiv fixture: 3 Letter pages, ~0.29 MB; four serif faces and one monospace face embedded (bold/italic monospace falls back to the regular face). The bundled SubsetTTF faces are pyftsubset outputs with retained glyph ids and a filtered legacy kern table; a third 110-glyph ASCII/typographic tier is selected when the document charset fits.
- 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.1 mm wide (reference 61.2 mm) with `\multicolumn` spans and
@@ -146,4 +146,4 @@ See `docs/ROADMAP.md` for concrete implementation plans.
- PDF link annotations are added by reopening the finished PDF with lopdf,
since printpdf 0.3.4 has no annotation API.
- Fonts: bundled reserved-glyph subsets in `assets/fonts-subset/` are used when the document charset is covered; arXiv PDF is about 0.53 MB with 58 tests.
- Fonts: bundled reserved-glyph subsets in `assets/fonts-subset/` are used when the document charset is covered; arXiv PDF is about 0.29 MB with 58 tests.