[tex-k] kpathsea: Illegal fontname `cmr12+50'

Olaf Weber olaf at infovore.xs4all.nl
Tue Dec 16 23:18:24 CET 2003


Hartmut Henkel writes:

> Hi,
> in the kpathsea used in pdftex-1.11b, when trying to use expanded fonts,
> pdftex gives the error:

> kpathsea: Illegal fontname `cmr12+50': contains '+'

> The plus sign is not allowed in the tfm string. It seems that this
> blocks using of expanded fonts in pdftex, so that the HZ-algorithm can't
> be used. The patch would be easy:

> --- ../../../../pdftex-1.11b/src/texk/kpathsea/tex-make.c	Mon Dec 23 08:22:57 2002
> +++ tex-make.c	Wed Nov 19 23:44:24 2003
> @@ -491,6 +491,7 @@
>      }
>      for (i = 0; base[i]; i++) {
>        if (!ISALNUM(base[i])
> +          && base[i] != '+'
>            && base[i] != '-'
>            && base[i] != '_'
>            && base[i] != '.'

> Would this have other negative consequences?

Probably not, '+' is not a shell metacharacter.

When making this change I was worried that valid names would be
excluded as well.  Unfortunately I was right.

-- 
Olaf Weber

               (This space left blank for technical reasons.)



More information about the tex-k mailing list