Hi,
ntg-context-boun...@ntg.nl wrote:
From: Mohamed Bana <mbana.li...@googlemail.com>
Date: Fri, 15 May 2009 19:51:31 +0100
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
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:
[t...@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
[t...@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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________