Success story
Lars Hellström
Lars.Hellstrom@math.umu.se
Tue, 10 Apr 2001 12:39:07 +0200
At 22.47 +0200 2001-04-09, Joachim Trinkwitz wrote:
>There is only one thing which is missing to my full happiness: the
>digits in the italic font don't have an oldstyle type (no italic
>small caps at all), so when I want to italicize some numerals, they
>are entirely absent in the output.
You could try slanting the smallcaps fonts to get oblique hanging (a.k.a.
oldstyle) figures, but whether that is aestetically acceptable is another
matter. Then you would do something like
\input fontinst.sty
\transformfont{ugmmc8r}{\reencodefont{8r}{\fromafm{ugmmc8a}}}
\transformfont{ugmbc8r}{\reencodefont{8r}{\fromafm{ugmbc8a}}}
\transformfont{ugmmi8r}{\reencodefont{8r}{\fromafm{ugmmi8a}}}
\transformfont{ugmbi8r}{\reencodefont{8r}{\fromafm{ugmbi8a}}}
\transformfont{ugmmco8r}% o since the font is oblique rather than italic.
{\slantfont{167}{\frommtx{ugmmc8r}}}
% Replace 167 by the actual italicslant value found in ugmmi8r.mtx.
\transformfont{ugmbco8r}{\slantfont{167}{\frommtx{ugmbc8r}}}
\reglyphfonts
% I can't see any reason you shouldn't use the csc2x reglyphing for all
fonts.
\input csc2x
\reglyphfont{ugmm8x}{ugmmc8r}
\reglyphfont{ugmb8x}{ugmbc8r}
\reglyphfont{ugmmi8x}{ugmmco8r} % Here we need to lie to \latinfamily, so
\reglyphfont{ugmbi8x}{ugmbco8r} % we name the fonts as if they were italic.
\endreglyphfonts
\latinfamily{ugmj}
%\latinfamily does its own \installfonts and \endinstallfonts.
\bye