[NTG-pdftex] xstrdup(nontfm)

Hartmut Henkel hartmut_henkel@gmx.de
Sun, 23 Nov 2003 21:56:06 +0100 (CET)


Hi, there has been a change from pdftex as in teTeX-2.0.2 to
pdftex-1.11b.tar.gz, in that in mapfile.c there is now:

if (strcmp(buf, nontfm) == 0)
    fm_ptr->tfm_name = xstrdup(nontfm);

which was still in teTeX-2.0.2:

if (strcmp(buf, nontfm) == 0)
            fm_ptr->tfm_name = nontfm;

As a consequence, in function lookup_fontmap(), it seems that now the
comparison

                if (p->tfm_name == nontfm)
                    p->tfm_num = newnullfont();

will never succeed (and there are a few more places), as xstrdup(nontfm)
returns a pointer _not_ pointing to the constant "<nontfm>" string. So
there seems to be something probably wrong; which has no influence at
all as long as nobody uses the undocumented (?) "<nontfm>" TFM entry in
mapfiles.

Has anybody used this obscure <nontfm>, and what is it good for?

Regards, Hartmut