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

Generated
+1
View File
@@ -966,6 +966,7 @@ dependencies = [
name = "texrra-tex-core"
version = "0.1.0"
dependencies = [
"flate2",
"hyphenate",
"rusttype",
"serde",