[NTG-pdftex] Type1, TTF, subsetting, basefont

Hartmut Henkel hartmut_henkel at gmx.de
Tue Dec 14 23:04:01 CET 2004


there seem to be a few inconsistencies in the way how pdftex handles
Type1 vs. TT fonts:

1. Subsetted Type1 fonts get a 6-character with + sign extension like

/BaseFont /FCLRSI+CMR10

in the PDF file, but TT fonts don't get this; there it's simply

/BaseFont /CMR10

Therefore even subsetted TT fonts are normally _not_ detected as
subsetted by the viewer or pdffonts program.

So this should probably be added to the TTF routines...

2. For Type1 fonts, the /BaseFont entry is always taken from the
/FontName entry in the font. However for TT fonts the /BaseFont entry in
the PDF file is copied from the tfmname (!) field in the mapline, if no
psname is stated there, else it's taken from the psname of the mapline.
E. g.

\pdfmapline{+Packa___ <8r.enc <PackardAntique.ttf}

gives in the PDF file:

/BaseFont /Packa___

(which should be PackardAntique-Regular), whereas

\pdfmapline{+Packa___ FOO <8r.enc <PackardAntique.ttf}


/BaseFont /FOO

Here maybe always the /FontName from the TT font should be taken; it's
an ASCII string with NameID 6 in the TTF name record. Then it would be
consistent with Type1.

Regards, Hartmut

More information about the ntg-pdftex mailing list