Compress embedded font and ToUnicode streams

Route-D PDFs embedded full FontFile2 programs and ToUnicode CMaps uncompressed. Deflate both streams and declare /Filter /FlateDecode while keeping /Length1 as the uncompressed font length. The minimal route-D PDF now renders to 13.5 KB, and the pdfTeX raster comparison still matches.
This commit is contained in:
gloamxun committed 2026-10-21 08:19:02 +08:00
1 parent aeacf53518
commit e052a0d0f3
6 files changed
+25 -7

No files matched your search

+1 -1
View File
@@ -129,7 +129,7 @@ section/figure/table references, numeric citations from a manual bibliography or
local `.bib` file, and natbib-style author-year citations for the arXiv template. A4 pages use 25 mm margins unless
`geometry` sets them. The PDF always embeds its Liberation Serif/Mono/Sans
faces (and any CJK fallback), so glyphs do not depend on fonts installed in the
reader; PDFs are therefore larger than Base-14 output but render reliably.
reader; font programs and ToUnicode maps are Flate-compressed, so PDFs are larger than Base-14 output but render reliably.
### LaTeX compatibility layer