oldstyle numbers

Lars Hellström Lars.Hellstrom@math.umu.se
Mon, 6 Dec 1999 13:29:31 -0500


In addition to the methods Thierry suggested, there is a new trick which
requires fontinst v1.910, namely to

% First reencode fonts (not necessary if these are left from a previous
% run, since \latinfamily will do this).
\transformfont{psbrc8r}{\reencodefont{8r}{\fromafm{psbrc8a}}}
\transformfont{psbrij8r}{\reencodefont{8r}{\fromafm{psbrij8a}}}
\transformfont{psbbj8r}{\reencodefont{8r}{\fromafm{psbbj8a}}}
\transformfont{psbbij8r}{\reencodefont{8r}{\fromafm{psbbij8a}}}

% Then change the glyph names. The newly created -8x fonts won't be 8x
% encoded at all, but that doesn't matter, since virtual fonts generated
% from them will use to the -8r encoded sources anyway. These -8x will
% only exist as .mtx files.
\reglyphfonts
  % Setup for changing names of figures:
  \renameglyph{zerooldstyle}{zero}
  \renameglyph{oneoldstyle}{one}
  \renameglyph{twooldstyle}{two}
  \renameglyph{threeoldstyle}{three}
  \renameglyph{fouroldstyle}{four}
  \renameglyph{fiveoldstyle}{five}
  \renameglyph{sixoldstyle}{six}
  \renameglyph{sevenoldstyle}{seven}
  \renameglyph{eigtholdstyle}{eight}
  \renameglyph{nineoldstyle}{nine}
  % These are not CSC, just OsF:
  \reglyphfont{psbri8x}{psbrij8r}
  \reglyphfont{psbb8x}{psbbj8r}
  \reglyphfont{psbbi8x}{psbbij8r}
  % Setup for changing CSC font glyph names:
  \input csc2x
  \reglyphfont{psbr8x}{psbrc8r} % This one is CSC
\endreglyphfonts

Finally you do the \latinfamily (if that is what you want).

The advantages with this over editing AFMs is (i) that you don't have to
duplicate entries in the .map file and (ii) that glyphs which do not have
an encoding position in the 8a encoding can be used (since the fake 8x
fonts generated from edited AFMs would still be 8a-encoded). But on the
other hand, it requires the newest beta-release of fontinst.

Doing the \installfont's is the most reliable solution.

Lars Hellström