[NTG-pdftex] Re: 1.20b-rc0 font replacement bug

The Thanh Han hanthethanh at myrealbox.com
Fri Nov 26 09:59:17 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.

Regards,
Thanh

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
> checked.
> 
> Regards, Hartmut


More information about the ntg-pdftex mailing list