Compress embedded font streams in the PDF writer

This commit is contained in:
gloamxun committed 2026-10-19 22:15:27 +08:00
1 parent 369472e7f7
commit 4735d75c1f
80 files changed
+9119 -5

No files matched your search

+1 -1
View File
@@ -81,4 +81,4 @@ the requested size and an x offset.
Done: the paragraph now places against the full body goal and the title-note reserve is applied after it; `arxiv_fixture_is_three_letter_pages` asserts that page 1 contains the closing `See` line and keeps a 3 mm gap above the footnote.
- Fonts: pyftsubset bundles with retained glyph ids and filtered kern table bring the arXiv PDF to about 1.1 MB; exact per-document glyph subsetting remains a follow-up.
- Fonts: pyftsubset bundles with retained glyph ids and filtered kern table bring the arXiv PDF to about 0.99 MB; exact per-document glyph subsetting remains a follow-up; font programs are Flate-compressed in the PDF.
+2 -2
View File
@@ -139,7 +139,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, ~1.1 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.99 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.
- 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
@@ -148,4 +148,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 1.1 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.99 MB with 58 tests.