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

The Thanh Han hanthethanh at myrealbox.com
Fri Nov 26 10:00:05 CET 2004


Hi,

thanks to Hartmut for discovering the bizard case. There is some test in
pdftoepdf.cc, so the font is still copied. But lookup_ps_fontmap when
found a matched entry also created a new internal font, so the font is
still embedded (but is not used anywhere).

Here is the new mapfile.c

Regards,
Thanh

On Fri, Nov 26, 2004 at 01:08:06AM +0100, Hartmut Henkel wrote:
> shouldn't it then be for safety:
> 
> 
>     /* search forward */
>     do {
>         ff = check_ff_exist(p);
>         if (ff->ff_path != NULL && !is_truetype(p) && used_tfm(p))
>                                    ^^^^^^^^^^^^^^^
> 
> Regards, Hartmut
> 
> 
> On Fri, 26 Nov 2004, Hartmut Henkel wrote:
> 
> > just a question about replacement of Type1 fontsfrom included ximages:
> >
> > If the mapline by accident contains a TTF font file (e. g.
> > <ptmr8a.ttf), with matching PS name, what would happen? Would the
> > Type1 font from an included file be extracted and replaced by TTF? I
> > believe no, but can't find a check for this in mapfile.c. A simple try
> > showed that the font is not replaced but some TTF font will be put
> > into the PDF output file.
> 
> 
> ------------------------------------------------------------------------
> Dr.-Ing. Hartmut Henkel
> In den Auwiesen 6, D-68723 Oftersheim, Germany
> E-Mail: hartmut_henkel at gmx.de
> http://www.circuitwizard.de
> ------------------------------------------------------------------------
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mapfile.c
Type: text/x-csrc
Size: 33545 bytes
Desc: not available
Url : http://www.ntg.nl/pipermail/ntg-pdftex/attachments/20041126/c57a5ade/mapfile-0001.bin


More information about the ntg-pdftex mailing list