[pdftex] Merging duplicate embedded fonts

Maarten Bezemer m.m.bezemer at utwente.nl
Tue Oct 8 13:04:46 CEST 2013


On Tuesday 08 October 2013 01:21:44 Reinhard Kotucha wrote:
> On 2013-10-07 at 10:53:35 +0200, Maarten Bezemer wrote:
<snip>
>  > My LaTeX file is as follows:
>  > 
>  > \documentclass{article}
>  > \usepackage{graphicx}
>  > 
>  > \begin{document}
>  > \includegraphics{image1}
>  > \includegraphics{image2}
>  > \end{document}
>  > 
>  > 
>  > pdffonts shows:
>  > $ pdffonts mydoc.pdf
>  > name                                 type              encoding        
>  > emb
>  > sub uni object ID
>  > ------------------------------------ ----------------- ----------------
>  > --- --- --- ---------
>  > SDXKYB+CMR10                         Type 1            Builtin         
>  > yes yes no       6  0
>  > DejaVuSans                           TrueType          WinAnsi         
>  > yes no yes     11  0
>  > DejaVuSans                           TrueType          WinAnsi         
>  > yes no yes     17  0

<snip>

> What happens if you push your file through Ghostscript?
> 
>   ps2pdf mydoc.pdf mydoc-gs.pdf
> 
> Regards,
>   Reinhard

Ghostscript converts the embedded fonts into embedded subset fonts. But it 
does not merge the duplicate fonts:

$ pdffonts mydoc-gs.pdf 
name                                 type              encoding         emb 
sub uni object ID
------------------------------------ ----------------- ---------------- --- 
--- --- ---------
CPKUFF+DejaVuSans                    TrueType          WinAnsi          yes 
yes yes      8  0
KUMHSN+DejaVuSans                    TrueType          WinAnsi          yes 
yes yes     10  0
LYKUVW+CMR10                         Type 1C           WinAnsi          yes 
yes no      12  0

Regards,
  Maarten


More information about the pdftex mailing list