Chromium PDF generation subsets embedded fonts, reducing file size significantly

A developer tested PDF generation in Chromium 149 on an M4 Mac using different font sources. The system font produced a PDF with 39 Type3 fonts, while Google Fonts resulted in 15 Type0 subsets. When full TTF files were provided locally, Chromium loaded 13.9 MB of font data but created a PDF of only 71 KB by subsetting fonts. This subsetting process reduced a 3.27 MB font to 48 KB in the output. The developer created a script to inventory embedded fonts and report which CSS families were omitted from final PDFs.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in