Hi, ntg-context-bounces@ntg.nl wrote:
From: Mohamed Bana
Date: Fri, 15 May 2009 19:51:31 +0100 To: mailing list for ConTeXt users Hi all,
why is the PDF generated from luatex so much smaller in size? When I compile slightly larger documents the difference is quite noticeable, e.g., 300 KB for pdftex and 56 KB for the same document.
-rw-r--r-- 1 mbana mbana 13K 2009-05-15 19:48 luasize.pdf -rw-r--r-- 1 mbana mbana 56K 2009-05-15 19:39 pdfsize.pdf
Because mkiv+luatex treats the fonts differently. If you compare the fonts in the pdf documents, you'll see this difference: [taco@ntg tmp]$ pdffonts luasize.pdf name type emb sub uni object ID ------------------------------------ ------------ --- --- --- --------- CLWCAI+LMMono10-Regular CID Type 0C yes yes yes 4 0 FRSDEY+MinionPro-Regular CID Type 0C yes yes yes 5 0 [taco@ntg tmp]$ pdffonts pdfsize.pdf name type emb sub uni object ID ------------------------------------ ------------ --- --- --- --------- TPEDRB+LMMono10-Regular Type 1 yes yes yes 4 0 QCXLWN+WarnockPro-Regular Type 1 yes yes yes 5 0 The 'CID Type 0' vs 'Type 1' is about encoding (2bytes vs 1byte); the key to the different sizes is the 'C' in the type category. In the luatex case, the fonts are internally converted to the newer 'Type 1 CFF' font format, which is much more compact than 'oldfashioned' Type 1. IIRC, dvipdfmx uses 'Type 1C' (1byte CFF), so that should also be smaller than pdftex. Best wishes, Taco