[pdftex] font inclusion

Reinhard Kotucha reinhard.kotucha at web.de
Fri Apr 2 15:49:25 CEST 2010


On 2 April 2010 Martin Schröder wrote:

 >2010/4/2 Reinhard Kotucha <reinhard.kotucha at web.de>:
 >> sometimes pdftex inserts a font twice with the same random prefix.  We
 >> have a lot of font samples and test files in VnTeX and though they are
 >> all created the same way, only very few of the created PDF files show
 >> this behavior.  One of them is t5cyklop-test.pdf .
 >>
 >> $ pdffonts t5cyklop-test.pdf
 >> name                           type              emb sub uni object ID
 >> ------------------------------ ----------------- --- --- --- ---------
 >> GFOBEK+CMTT10                  Type 1            yes yes yes     10  0
 >> HERLWI+Cyklop-Regular          Type 1            yes yes yes     11  0
 >> QPKIYS+Cyklop-Italic           Type 1            yes yes yes     12  0
 >> HERLWI+Cyklop-Regular          Type 1            yes yes yes     13  0
 >> QPKIYS+Cyklop-Italic           Type 1            yes yes yes     14  0
 > 
 > I think if you dig into the PDF you'll see that the duplicate files
 > only duplicate the FontDescriptors; the actual font files are only
 > included once. But pdffonts counts the FontDescriptors.

Hi Martin,
you are right, objects 11 and 13 are pointing to the same
/FontDescriptor but to different /Widths and /Encoding arrays.  The
reason is that the Cyclop fonts contain both, normal and small caps
within the same /FontFile.

Apparently pdfsizeopt.py doesn't check properly whether these objects
refer to the same /FontFile.  Sorry for the noise.

Thanks,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha			              Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover	                      mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------



More information about the pdftex mailing list