[pdftex] gs warning: Warning: Encoding not present.

Thanh Han The hanthethanh at gmail.com
Sun Apr 15 10:46:28 CEST 2007


On Sat, Apr 14, 2007 at 11:03:34PM +0200, Hartmut Henkel wrote:
> > The same warning is raised with pdflatex 1.30.6 form MiKTeX 2.5 and with
> > other TTFs.  File palatinox2.pdf seems to be ok.  And it's a warning
> > only.  Should I care about that?
>
> it looks as if gs searches for the /Encoding key (see file pdf_font.ps
> within gs sources) in the /Font object within the PDF file and doesn't
> find it (it's optional according to the PDF Ref.). Maybe it should
> better check the TTF font for the encoding, but it seems that this
> doesn't happen. As an experiment: one gets rid of the gs warning if one
> manipulates a fake
>
> /Encoding << /Differences [] >>
>
> into the /Font object.

yes this seems to be the reason. Encoding doesn't have any
effect on TTF fonts (they use their own builtin encodings),
so it's a right thing to leave it out. It's pretty easy to
add a faked Encoding as Hartmut suggested above, but is it
really needed?

Regards,
Thanh


More information about the pdftex mailing list