[Fontinst] Adding unencoded glyph

Philipp Lehman lehman at gmx.net
Wed Mar 31 14:15:18 CEST 2004

Am Mittwoch, 31. März 2004 11:40 schrieb Ulrich Dirr:

> 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.

Is "oldcurrency" encoded in the original font? Can you give us the 
relevant lines from the AFM file?

> One fontinst instruction looks like
> \installfont{lhnj8c}{lhnj8r,lhnj9z,unsetcurrency,resetcurrency,text
>com p}{ts1}{TS1}{lhn}{ul}{n}{}

I suppose your problem stems from the fact that there is no such thing 
as "oldcurrency" in Tex Base 1. If you reencode lhnj8a to lhnj8r this 
glyph is effectively discarded and you can't get it back when 
building the virtual font later.

You need to either (1) deal with this problem when reencoding the font 
(by hacking 8r.etx) or (2) input lhnj8a in addition to lhnj8r (only 
if "oldcurrency" is encoded in lhnj8a, i.e. it's in a slot != -1).

In your example, the only possible source for "oldcurrency" is lhnj9z. 
So, what's in lhnj9z in your case?


Philipp Lehman <lehman at gmx.net>

More information about the fontinst mailing list