[NTG-pdftex] Re: 1.20b-rc0 font replacement bug
The Thanh Han
hanthethanh at myrealbox.com
Thu Nov 25 10:03:03 CET 2004
Hi Hartmut and Martin,
please wait, I will take a closer look at the problem. It looks that
Hartmut's patch can be improved.
On Thu, Nov 25, 2004 at 02:25:06AM +0100, Hartmut Henkel wrote:
> Hi Thanh,
> when a PDF file with embedded fonts is included by \pdfximage, fonts
> will be replaced through lookup_ps_name() heuristics. However it's
> actually not checked there whether the font file itself is available.
> Problem example:
> Some PDF file comes with a Palatino-Roman. TFM entry pplr8r is listed in
> the mapfile together with fontfile <pplr8a.pfb. But pplr8a.pfb isn't on
> the PC. Still the font embedded in the PDF file will be replaced by ---
> nothing. One gets an invalid stream, missing letters.
> But if the fontfile is not available, the replacement of embedded fonts
> in PDF files shouldn't be done at all; instead the font coming with the
> PDF file should be used as is. Below is a quick patch. Only roughly
> Regards, Hartmut
More information about the ntg-pdftex