[Fontinst] expanded fonts

Walter Schmidt Walter Schmidt" <latex@arcor.de
Mon, 16 Dec 2002 23:37:37 +0100 (MEZ)


On Mon, 16 Dec 2002 21:41:00 +0100, Oliver Heins wrote:

>My idea was to write a script that uses the low-level-commands of
>fontinst and does in a first step, what \latinfamily does, [...]
>
>However, I failed in the first step. 

I have attached a fontinst script for Adobe Stempel Garamond.
No, this is not the script I am actually using;  I left out
the bells and whistles and dirty tricks.  This is just showing
the basic low-level commands.  I'm using the naming scheme 
that was invented for expert fonts, because I need to 
discriminate between normal and oldstyle digits.  NB:  Make sure 
to use fontinst 1.914 with patches #1 and #4!


>I renamed the afm- and pfb-files according to Berry's 
>font-naming-scheme
>to pegr8a.afm|pfb, pegb8a, pegri8a, pegbi8a, pegrc8a, pegbj8a, pegrij8a,
>pegbij8a.  (In fact, I was a little bit in doubt whether I should name
>the OsF-fonts as OsF-fonts (j) or as SC-fonts (c), but decided to do it
>the same way Walter Schmidt did.)

<g> I simply followed the official KB scheme, although it 
seems to be wrong here:  pegrc8a should actually be pegrcj8a, 
because it has both SC and OsF.  I suppose \latinfamily would 
not handle pegrc8a appropriately.  (One reason, why I don't 
use \latinfamily, as soon as SC or OsF are involved.)

The other OsF fonts have oldstyle digits only, but no smallcaps, 
so the KB names are correct.

HTH
Walter

PS: I will be off-line from 19. to 31. Dec.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% snip %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\input fontinst.sty

\installfonts
\installfamily{T1}{pegx}{}
\installfamily{TS1}{pegx}{}
\installfamily{OT1}{pegx}{}
 
\installfamily{T1}{pegj}{}
\installfamily{TS1}{pegj}{}
\installfamily{OT1}{pegj}{}

\transformfont{pegr8r}{\reencodefont{8r}{\fromafm{pegr8a}}}
\transformfont{pegri8r}{\reencodefont{8r}{\fromafm{pegri8a}}}
\transformfont{pegb8r}{\reencodefont{8r}{\fromafm{pegb8a}}}
\transformfont{pegbi8r}{\reencodefont{8r}{\fromafm{pegbi8a}}}
\transformfont{pegrc8r}{\reencodefont{8r}{\fromafm{pegrc8a}}}
\transformfont{pegrij8r}{\reencodefont{8r}{\fromafm{pegrij8a}}}
\transformfont{pegbj8r}{\reencodefont{8r}{\fromafm{pegbj8a}}}
\transformfont{pegbij8r}{\reencodefont{8r}{\fromafm{pegbij8a}}}

\installrawfont{pegr8r}{pegr8r,8r}{8r}{8r}{}{}{}{}
\installrawfont{pegri8r}{pegri8r,8r}{8r}{8r}{}{}{}{}
\installrawfont{pegb8r}{pegb8r,8r}{8r}{8r}{}{}{}{}
\installrawfont{pegrc8r}{pegrc8r,8r}{8r}{8r}{}{}{}{}
\installrawfont{pegrij8r}{pegrij8r,8r}{8r}{8r}{}{}{}{}
\installrawfont{pegbj8r}{pegbj8r,8r}{8r}{8r}{}{}{}{}
\installrawfont{pegbij8r}{pegbij8r,8r}{8r}{8r}{}{}{}{}

% oldstyle digits

\installfont{pegr9d}{pegr8r,unsetnum,kernoff,pegrc8r,kernon,latin}{t1}
  {T1}{pegj}{m}{n}{}
\installfont{pegr9c}{pegr8r,unsetnum,kernoff,pegrc8r,kernon,textcomp}{ts1}
  {TS1}{pegj}{m}{n}{}
\installfont{pegr9o}{pegr8r,unsetnum,kernoff,pegrc8r,kernon,latin}{ot1}
  {OT1}{pegj}{m}{n}{}

\installfont{pegrc9d}{pegrc8r,latin}{T1}
  {T1}{pegj}{m}{sc}{}
\installfont{pegrc9o}{pegrc8r,latin}{ot1}
  {OT1}{pegj}{m}{sc}{}

\installfont{pegri9d}{pegrij8r,latin}{t1}
  {T1}{pegj}{m}{it}{}
\installfont{pegri9c}{pegrij8r,textcomp}{ts1}
  {TS1}{pegj}{m}{it}{}
\installfont{pegri9o}{pegrij8r,latin}{ot1i}
  {OT1}{pegj}{m}{it}{}

\installfont{pegb9d}{pegbj8r,latin}{t1}
  {T1}{pegj}{b}{n}{}
\installfont{pegb9c}{pegbj8r,textcomp}{ts1}
  {TS1}{pegj}{b}{n}{}
\installfont{pegb9o}{pegbj8r,latin}{ot1}
  {OT1}{pegj}{b}{n}{}

\installfont{pegbi9d}{pegbij8r,latin}{t1}
  {T1}{pegj}{b}{it}{}
\installfont{pegbi9c}{pegbij8r,textcomp}{ts1}
  {TS1}{pegj}{b}{it}{}
\installfont{pegbi9o}{pegbij8r,latin}{ot1i}
  {OT1}{pegj}{b}{it}{}

% normal digits

\installfont{pegr9e}{pegr8r,latin}{t1}
  {T1}{pegx}{m}{n}{}
\installfont{pegr9t}{pegr8r,latin}{ot1}
  {OT1}{pegx}{m}{n}{}

\installfont{pegrc9e}{pegrc8r,unsetnum,kernoff,pegr8r,kernon,latin}{t1}
  {T1}{pegx}{m}{sc}{}
\installfont{pegrc9t}{pegrc8r,unsetnum,kernoff,pegr8r,kernon,latin}{ot1}
  {OT1}{pegx}{m}{sc}{}

\installfont{pegri9e}{pegri8r,latin}{t1}
  {T1}{pegx}{m}{it}{}
\installfont{pegri9t}{pegri8r,latin}{ot1i}
  {OT1}{pegx}{m}{it}{}
  
\installfont{pegb9e}{pegb8r,latin}{t1}
  {T1}{pegx}{b}{n}{}
\installfont{pegb9t}{pegb8r,latin}{ot1}
  {OT1}{pegx}{b}{n}{}

\installfont{pegbi9e}{pegbi8r,latin}{t1}
  {T1}{pegx}{b}{it}{}
\installfont{pegbi9t}{pegbi8r,latin}{ot1i}
  {OT1}{pegx}{b}{it}{}

\installfontas{pegr9c}
  {TS1}{pegx}{m}{n}{}
\installfontas{pegri9c}
  {TS1}{pegx}{m}{it}{}
\installfontas{pegb9c}
  {TS1}{pegx}{b}{n}{}
\installfontas{pegb9c}
  {TS1}{pegx}{b}{n}{}

\endinstallfonts
\bye


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% snap %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%