ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: PDF sizes
Date: Sat, 16 May 2009 09:20:17 +0200	[thread overview]
Message-ID: <4A0E6931.8030804@elvenkind.com> (raw)
In-Reply-To: <mailman.0.1242457787.3981.ntg-context@ntg.nl>


Hi,

ntg-context-bounces@ntg.nl wrote:
> 
> From: Mohamed Bana <mbana.lists@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:

[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



___________________________________________________________________________________
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
___________________________________________________________________________________


           reply	other threads:[~2009-05-16  7:20 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <mailman.0.1242457787.3981.ntg-context@ntg.nl>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A0E6931.8030804@elvenkind.com \
    --to=taco@elvenkind.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).