First Attempt

Lars Hellström Lars.Hellstrom@math.umu.se
Sun, 16 Jun 2002 20:42:45 +0200


At 19.01 +0200 2002-06-16, Adrian Heathcote wrote:
>Hi All
>
>This is my first stab. Does it look right?
>
>\input fontinst.sty
>\installfonts
>\installfamily{T1}{pgj}{}
>\substitutesilent{bx}{b}
>\substitutenoisy{ui}{it}
>\transformfont{{pgjr8r}{\reencodefont{8r}{\fromafm{pgjr8a}}}
>\transformfont{{pgjri8r}{\reencodefont{8r}{\fromafm{pgjri8a}}}
>\transformfont{{pgjb8r}{\reencodefont{8r}{\fromafm{pgjb8a}}}
               ^ You've got an extra level of grouping here ^
The \substitute... and \transformfont commands should appear before
\installfonts. \installfonts, \installfont, and \endinstallfonts are
beginning and ending groups in a rather non-intuitive way which interferes
with the expected operation of assignment commands (such as the
\substitute... commands).

>\installfont{pgjr8t}{pgjr8a,latin}{T19}{T1}{pgj}{m}{n}{}
>\installfont{pgjri8t}{pgjri8a,latin}{T19}{T1}{pgj}{m}{it}{}
>\installfont{pgjb8t}{pgjb8a,latin}{T19}{T1}{pgj}{m}{b}{}
>\installfont{pgjrc8t}{pgjrc8a,latin}{T1c}{T1}{pgj}{m}{sc}{}

Those ...8a files should rather be ...8r, otherwise many common accented
letters will be faked although there are proper versions in the font. All
the #3 arguments should probably be {t1}, since the glyph names in the raw
fonts probably don't reflect what the glyphs really look like.

>\endistallfonts
      ^n
>\bye
>
>
>But this will---at best--- only install the old-style figures. Ideally
>I'd like the lining figures as well as old style. Can anyone suggest a
>mod. that will accomplish that?

Since LaTeX doesn't have a font attribute that expresses this difference,
the usual way of handling this is to make two families---one named pgj
which has lining figures and one named pgjj which has hanging figures.
Actually making these fonts is a trickier matter however, since the foundry
has probably used the same name for glyphs that you need to distinguish
between.

Lars Hellström