% inst-hlhj.tex  2005-09-15 (WaS)
% 
% fontinst script to create the font family hlhj, 
% i.e. Lucida Bright with OsF
%
%  NFSS classification
%  -----------------------------------
%  encodings family  series  shape(s)
% 
%  T1, TS1   hlhj    m       n, it, sc
%  T1, TS1   hlhj    b       n, sc


\input fontinst.sty
\needsfontinstversion{1.928}

% base fonts:
\transformfont{hlhr8r}{\reencodefont{8r}{\fromafm{lbr}}}
\transformfont{hlhri8r}{\reencodefont{8r}{\fromafm{lbi}}}
\transformfont{hlhrc8r}{\reencodefont{8r}{\fromafm{lbrsc}}}
\transformfont{hlcrie8r}{\reencodefont{8r}{\fromafm{lbc}}}
\transformfont{hlhb8r}{\reencodefont{8r}{\fromafm{lbd}}}
\transformfont{hlhbc8r}{\reencodefont{8r}{\fromafm{lbdsc}}}


% transform the ready-made sc/osf fonts
% into pseudo-experts font with correct glyph names
\reglyphfonts
  \input csc2x
  \reglyphfont{hlhrcx8r}{hlhrc8r}
  \reglyphfont{hlhbcx8r}{hlhbc8r}
\endreglyphfonts


% transform the calligraphic-italic font
% into a pseudo-expert font with correct glyph names
\reglyphfonts
  \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{eightoldstyle}{eight}
  \renameglyph{nineoldstyle}{nine}
  \reglyphfont{hlcriex8r}{hlcrie8r}
\endreglyphfonts


\installfonts

\installfamily{T1}{hlhj}{}
\installfamily{TS1}{hlhj}{}

% The virtual roman and italic fonts are created
% in a way as if we had real expert fonts:

\installfont{hlhr9d}{hlhr8r,kernoff,hlhrcx8r,kernon,patch-hlhr,latin}{t1j}
  {T1}{hlhj}{m}{n}{}
  
\installfont{hlhb9d}{hlhb8r,kernoff,hlhbcx8r,kernon,patch-hlhb,latin}{t1j}
  {T1}{hlhj}{b}{n}{}
  
\installfont{hlhri9d}{hlhri8r,kernoff,hlcriex8r,kernon,patch-hlhri,latin}{t1ij}
  {T1}{hlhj}{m}{it}{}


% To make smallcaps, those glyphs that are named correctly,
% are taken immediately from the ready-made SC/OsF fonts, 
% wheras the small capitals and the digits are taken from the 
% pseudo-expert MTX files.  Thus, we can make use of the
% latinsc.mtx script:

\installfont{hlhrc9d}{hlhrc8r,hlhrcx8r,patch-hlhrc,latinsc,unsetlsc}{T1cj}
  {T1}{hlhj}{m}{sc}{}

\installfont{hlhbc9d}{hlhbc8r,hlhbcx8r,patch-hlhbc,latinsc,unsetlsc}{T1cj}
  {T1}{hlhj}{b}{sc}{}


% We use the same textcompanion fonts as in family hlh:

\installfontas{hlhr8c}
  {TS1}{hlhj}{m}{n}{} 

\installfontas{hlhri8c}
  {TS1}{hlhj}{m}{it}{}

\installfontas{hlhb8c}
  {TS1}{hlhj}{b}{n}{} 


\endinstallfonts

\bye



