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

Hans Hagen pragma at wxs.nl
Thu Nov 25 11:18:39 CET 2004


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.

aaagh, i though that was already fixed ... this is one of the reasons why i've 
never used those big verbose map files (in the meantime there are other reasons 
as well)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------



More information about the ntg-pdftex mailing list