[Fontinst] Adding unencoded glyph

Lars Hellström Lars.Hellstrom at math.umu.se
Wed Mar 31 13:42:40 CEST 2004

At 11.40 +0200 2004-03-31, Ulrich Dirr wrote:
>I'm trying to setup fontinst for Linotype Helvetica Neue. Everything
>is working quiet nice except that I'm obviously too stupid to get the
>'currency' glyph. The point is that Linotype as encoded the Euro twice
>as 'Euro' and 'currency'. The original currency sign is stored as
>'oldcurrency'. Of course when generating the text companion fonts I
>want both characters.
>The reencoded font lhnj8r has a line

The problem here is that the glyph is unencoded (i.e., it has slot number
-1). This means it cannot be reached by TeX. You need to \reencodefont with
some  encoding that assigns a slot position to `oldcurrency'.

>One fontinst instruction looks like
>unsetcurrency.mtx has
>whereas in resetcurrency.mtx I tried two variations which seemed ok
>for me but doesn't work. The first produced an error message like
>'missing number' while the second doesn't work at all.
>   \glyph{oldcurrency}{1000}

That error is because there isn't an `oldcurrency' glyph. The
\setscalednotglyph above will define `oldcurrency-not', so that this
non-useful (because no slot is assigned) definition of `oldcurrency' won't
get in the way of another useful definition that _might_ be provided by a
font you load later.


\renameglyph just sets up a definition for \reglyphfont. It isn't meant to
be used in MTX files, but rather as a preparation for the \reglyphfont
automatic transformation of such files.

Lars Hellström

More information about the fontinst mailing list