% FontInst script to generate virtual fonts.
% You'll need pl files for all the fonts listed in this file;
% they may be generated with the tftopl utility.
% Check Fontinst's documentation to see what's going on...

\input fontinst.sty

\installfonts

\substitutenoisy{it}{sl}
\substitutenoisy{sl}{it}
\substitutesilent{bx}{b}
\substitutesilent{b}{bx}
\substitutesilent{b}{sb}
\substitutesilent{b}{db}
\substitutesilent{m}{mb}
\substitutesilent{m}{l}

\declareencoding{UNSPECIFIED}{cbgreek}

% Transform the normal series

\transformfont{bgmn0500}{\reencodefont{cbgreek}{\frompl{grmn0500}}}
\transformfont{bgmn0600}{\reencodefont{cbgreek}{\frompl{grmn0600}}}
\transformfont{bgmn0700}{\reencodefont{cbgreek}{\frompl{grmn0700}}}
\transformfont{bgmn0800}{\reencodefont{cbgreek}{\frompl{grmn0800}}}
\transformfont{bgmn0900}{\reencodefont{cbgreek}{\frompl{grmn0900}}}
\transformfont{bgmn1000}{\reencodefont{cbgreek}{\frompl{grmn1000}}}
\transformfont{bgmn1095}{\reencodefont{cbgreek}{\frompl{grmn1095}}}
\transformfont{bgmn1200}{\reencodefont{cbgreek}{\frompl{grmn1200}}}
\transformfont{bgmn1440}{\reencodefont{cbgreek}{\frompl{grmn1440}}}
\transformfont{bgmn1728}{\reencodefont{cbgreek}{\frompl{grmn1728}}}
\transformfont{bgmn2074}{\reencodefont{cbgreek}{\frompl{grmn2074}}}
\transformfont{bgmn2488}{\reencodefont{cbgreek}{\frompl{grmn2488}}}

\transformfont{bgmo0500}{\reencodefont{cbgreek}{\frompl{grmo0500}}}
\transformfont{bgmo0600}{\reencodefont{cbgreek}{\frompl{grmo0600}}}
\transformfont{bgmo0700}{\reencodefont{cbgreek}{\frompl{grmo0700}}}
\transformfont{bgmo0800}{\reencodefont{cbgreek}{\frompl{grmo0800}}}
\transformfont{bgmo0900}{\reencodefont{cbgreek}{\frompl{grmo0900}}}
\transformfont{bgmo1000}{\reencodefont{cbgreek}{\frompl{grmo1000}}}
\transformfont{bgmo1095}{\reencodefont{cbgreek}{\frompl{grmo1095}}}
\transformfont{bgmo1200}{\reencodefont{cbgreek}{\frompl{grmo1200}}}
\transformfont{bgmo1440}{\reencodefont{cbgreek}{\frompl{grmo1440}}}
\transformfont{bgmo1728}{\reencodefont{cbgreek}{\frompl{grmo1728}}}
\transformfont{bgmo2074}{\reencodefont{cbgreek}{\frompl{grmo2074}}}
\transformfont{bgmo2488}{\reencodefont{cbgreek}{\frompl{grmo2488}}}

\transformfont{bgmc0500}{\reencodefont{cbgreek}{\frompl{grmc0500}}}
\transformfont{bgmc0600}{\reencodefont{cbgreek}{\frompl{grmc0600}}}
\transformfont{bgmc0700}{\reencodefont{cbgreek}{\frompl{grmc0700}}}
\transformfont{bgmc0800}{\reencodefont{cbgreek}{\frompl{grmc0800}}}
\transformfont{bgmc0900}{\reencodefont{cbgreek}{\frompl{grmc0900}}}
\transformfont{bgmc1000}{\reencodefont{cbgreek}{\frompl{grmc1000}}}
\transformfont{bgmc1095}{\reencodefont{cbgreek}{\frompl{grmc1095}}}
\transformfont{bgmc1200}{\reencodefont{cbgreek}{\frompl{grmc1200}}}
\transformfont{bgmc1440}{\reencodefont{cbgreek}{\frompl{grmc1440}}}
\transformfont{bgmc1728}{\reencodefont{cbgreek}{\frompl{grmc1728}}}
\transformfont{bgmc2074}{\reencodefont{cbgreek}{\frompl{grmc2074}}}
\transformfont{bgmc2488}{\reencodefont{cbgreek}{\frompl{grmc2488}}}

% Transform the bold series

\transformfont{bgxn0500}{\reencodefont{cbgreek}{\frompl{grxn0500}}}
\transformfont{bgxn0600}{\reencodefont{cbgreek}{\frompl{grxn0600}}}
\transformfont{bgxn0700}{\reencodefont{cbgreek}{\frompl{grxn0700}}}
\transformfont{bgxn0800}{\reencodefont{cbgreek}{\frompl{grxn0800}}}
\transformfont{bgxn0900}{\reencodefont{cbgreek}{\frompl{grxn0900}}}
\transformfont{bgxn1000}{\reencodefont{cbgreek}{\frompl{grxn1000}}}
\transformfont{bgxn1095}{\reencodefont{cbgreek}{\frompl{grxn1095}}}
\transformfont{bgxn1200}{\reencodefont{cbgreek}{\frompl{grxn1200}}}
\transformfont{bgxn1440}{\reencodefont{cbgreek}{\frompl{grxn1440}}}
\transformfont{bgxn1728}{\reencodefont{cbgreek}{\frompl{grxn1728}}}
\transformfont{bgxn2074}{\reencodefont{cbgreek}{\frompl{grxn2074}}}
\transformfont{bgxn2488}{\reencodefont{cbgreek}{\frompl{grxn2488}}}

\transformfont{bgxo0500}{\reencodefont{cbgreek}{\frompl{grxo0500}}}
\transformfont{bgxo0600}{\reencodefont{cbgreek}{\frompl{grxo0600}}}
\transformfont{bgxo0700}{\reencodefont{cbgreek}{\frompl{grxo0700}}}
\transformfont{bgxo0800}{\reencodefont{cbgreek}{\frompl{grxo0800}}}
\transformfont{bgxo0900}{\reencodefont{cbgreek}{\frompl{grxo0900}}}
\transformfont{bgxo1000}{\reencodefont{cbgreek}{\frompl{grxo1000}}}
\transformfont{bgxo1095}{\reencodefont{cbgreek}{\frompl{grxo1095}}}
\transformfont{bgxo1200}{\reencodefont{cbgreek}{\frompl{grxo1200}}}
\transformfont{bgxo1440}{\reencodefont{cbgreek}{\frompl{grxo1440}}}
\transformfont{bgxo1728}{\reencodefont{cbgreek}{\frompl{grxo1728}}}
\transformfont{bgxo2074}{\reencodefont{cbgreek}{\frompl{grxo2074}}}
\transformfont{bgxo2488}{\reencodefont{cbgreek}{\frompl{grxo2488}}}

\transformfont{bgxc0500}{\reencodefont{cbgreek}{\frompl{grxc0500}}}
\transformfont{bgxc0600}{\reencodefont{cbgreek}{\frompl{grxc0600}}}
\transformfont{bgxc0700}{\reencodefont{cbgreek}{\frompl{grxc0700}}}
\transformfont{bgxc0800}{\reencodefont{cbgreek}{\frompl{grxc0800}}}
\transformfont{bgxc0900}{\reencodefont{cbgreek}{\frompl{grxc0900}}}
\transformfont{bgxc1000}{\reencodefont{cbgreek}{\frompl{grxc1000}}}
\transformfont{bgxc1095}{\reencodefont{cbgreek}{\frompl{grxc1095}}}
\transformfont{bgxc1200}{\reencodefont{cbgreek}{\frompl{grxc1200}}}
\transformfont{bgxc1440}{\reencodefont{cbgreek}{\frompl{grxc1440}}}
\transformfont{bgxc1728}{\reencodefont{cbgreek}{\frompl{grxc1728}}}
\transformfont{bgxc2074}{\reencodefont{cbgreek}{\frompl{grxc2074}}}
\transformfont{bgxc2488}{\reencodefont{cbgreek}{\frompl{grxc2488}}}

% Install the roman family

\installfamily{BCG}{cmr}{}

% medium normal series

\installfont{bgmn0500}{grmn0500}{bgreek}{BCG}{cmr}{m}{n}{5}
\installfont{bgmn0600}{grmn0600}{bgreek}{BCG}{cmr}{m}{n}{6}
\installfont{bgmn0700}{grmn0700}{bgreek}{BCG}{cmr}{m}{n}{7}
\installfont{bgmn0800}{grmn0800}{bgreek}{BCG}{cmr}{m}{n}{8}
\installfont{bgmn0900}{grmn0900}{bgreek}{BCG}{cmr}{m}{n}{9}
\installfont{bgmn1000}{grmn1000}{bgreek}{BCG}{cmr}{m}{n}{10}
\installfont{bgmn1095}{grmn1095}{bgreek}{BCG}{cmr}{m}{n}{11}
\installfont{bgmn1200}{grmn1200}{bgreek}{BCG}{cmr}{m}{n}{12}
\installfont{bgmn1440}{grmn1440}{bgreek}{BCG}{cmr}{m}{n}{14}
\installfont{bgmn1728}{grmn1728}{bgreek}{BCG}{cmr}{m}{n}{17}
\installfont{bgmn2074}{grmn2074}{bgreek}{BCG}{cmr}{m}{n}{20}
\installfont{bgmn2488}{grmn2488}{bgreek}{BCG}{cmr}{m}{n}{25}

% slanted

\installfont{bgmo0500}{grmo0500}{bgreek}{BCG}{cmr}{m}{sl}{5}
\installfont{bgmo0600}{grmo0600}{bgreek}{BCG}{cmr}{m}{sl}{6}
\installfont{bgmo0700}{grmo0700}{bgreek}{BCG}{cmr}{m}{sl}{7}
\installfont{bgmo0800}{grmo0800}{bgreek}{BCG}{cmr}{m}{sl}{8}
\installfont{bgmo0900}{grmo0900}{bgreek}{BCG}{cmr}{m}{sl}{9}
\installfont{bgmo1000}{grmo1000}{bgreek}{BCG}{cmr}{m}{sl}{10}
\installfont{bgmo1095}{grmo1095}{bgreek}{BCG}{cmr}{m}{sl}{11}
\installfont{bgmo1200}{grmo1200}{bgreek}{BCG}{cmr}{m}{sl}{12}
\installfont{bgmo1440}{grmo1440}{bgreek}{BCG}{cmr}{m}{sl}{14}
\installfont{bgmo1728}{grmo1728}{bgreek}{BCG}{cmr}{m}{sl}{17}
\installfont{bgmo2074}{grmo2074}{bgreek}{BCG}{cmr}{m}{sl}{20}
\installfont{bgmo2488}{grmo2488}{bgreek}{BCG}{cmr}{m}{sl}{25}

% smallcaps

\installfont{bgmc0500}{grmc0500}{bgreek}{BCG}{cmr}{m}{sc}{5}
\installfont{bgmc0600}{grmc0600}{bgreek}{BCG}{cmr}{m}{sc}{6}
\installfont{bgmc0700}{grmc0700}{bgreek}{BCG}{cmr}{m}{sc}{7}
\installfont{bgmc0800}{grmc0800}{bgreek}{BCG}{cmr}{m}{sc}{8}
\installfont{bgmc0900}{grmc0900}{bgreek}{BCG}{cmr}{m}{sc}{9}
\installfont{bgmc1000}{grmc1000}{bgreek}{BCG}{cmr}{m}{sc}{10}
\installfont{bgmc1095}{grmc1095}{bgreek}{BCG}{cmr}{m}{sc}{11}
\installfont{bgmc1200}{grmc1200}{bgreek}{BCG}{cmr}{m}{sc}{12}
\installfont{bgmc1440}{grmc1440}{bgreek}{BCG}{cmr}{m}{sc}{14}
\installfont{bgmc1728}{grmc1728}{bgreek}{BCG}{cmr}{m}{sc}{17}
\installfont{bgmc2074}{grmc2074}{bgreek}{BCG}{cmr}{m}{sc}{20}
\installfont{bgmc2488}{grmc2488}{bgreek}{BCG}{cmr}{m}{sc}{25}

% Install the bold series

% normal

\installfont{bgxn0500}{grxn0500}{bgreek}{BCG}{cmr}{bx}{n}{5}
\installfont{bgxn0600}{grxn0600}{bgreek}{BCG}{cmr}{bx}{n}{6}
\installfont{bgxn0700}{grxn0700}{bgreek}{BCG}{cmr}{bx}{n}{7}
\installfont{bgxn0800}{grxn0800}{bgreek}{BCG}{cmr}{bx}{n}{8}
\installfont{bgxn0900}{grxn0900}{bgreek}{BCG}{cmr}{bx}{n}{9}
\installfont{bgxn1000}{grxn1000}{bgreek}{BCG}{cmr}{bx}{n}{10}
\installfont{bgxn1095}{grxn1095}{bgreek}{BCG}{cmr}{bx}{n}{11}
\installfont{bgxn1200}{grxn1200}{bgreek}{BCG}{cmr}{bx}{n}{12}
\installfont{bgxn1440}{grxn1440}{bgreek}{BCG}{cmr}{bx}{n}{14}
\installfont{bgxn1728}{grxn1728}{bgreek}{BCG}{cmr}{bx}{n}{17}
\installfont{bgxn2074}{grxn2074}{bgreek}{BCG}{cmr}{bx}{n}{20}
\installfont{bgxn2488}{grxn2488}{bgreek}{BCG}{cmr}{bx}{n}{25}

% slanted

\installfont{bgxo0500}{grxo0500}{bgreek}{BCG}{cmr}{bx}{sl}{5}
\installfont{bgxo0600}{grxo0600}{bgreek}{BCG}{cmr}{bx}{sl}{6}
\installfont{bgxo0700}{grxo0700}{bgreek}{BCG}{cmr}{bx}{sl}{7}
\installfont{bgxo0800}{grxo0800}{bgreek}{BCG}{cmr}{bx}{sl}{8}
\installfont{bgxo0900}{grxo0900}{bgreek}{BCG}{cmr}{bx}{sl}{9}
\installfont{bgxo1000}{grxo1000}{bgreek}{BCG}{cmr}{bx}{sl}{10}
\installfont{bgxo1095}{grxo1095}{bgreek}{BCG}{cmr}{bx}{sl}{11}
\installfont{bgxo1200}{grxo1200}{bgreek}{BCG}{cmr}{bx}{sl}{12}
\installfont{bgxo1440}{grxo1440}{bgreek}{BCG}{cmr}{bx}{sl}{14}
\installfont{bgxo1728}{grxo1728}{bgreek}{BCG}{cmr}{bx}{sl}{17}
\installfont{bgxo2074}{grxo2074}{bgreek}{BCG}{cmr}{bx}{sl}{20}
\installfont{bgxo2488}{grxo2488}{bgreek}{BCG}{cmr}{bx}{sl}{25}

% small caps

\installfont{bgxc0500}{grxc0500}{bgreek}{BCG}{cmr}{bx}{sc}{5}
\installfont{bgxc0600}{grxc0600}{bgreek}{BCG}{cmr}{bx}{sc}{6}
\installfont{bgxc0700}{grxc0700}{bgreek}{BCG}{cmr}{bx}{sc}{7}
\installfont{bgxc0800}{grxc0800}{bgreek}{BCG}{cmr}{bx}{sc}{8}
\installfont{bgxc0900}{grxc0900}{bgreek}{BCG}{cmr}{bx}{sc}{9}
\installfont{bgxc1000}{grxc1000}{bgreek}{BCG}{cmr}{bx}{sc}{10}
\installfont{bgxc1095}{grxc1095}{bgreek}{BCG}{cmr}{bx}{sc}{11}
\installfont{bgxc1200}{grxc1200}{bgreek}{BCG}{cmr}{bx}{sc}{12}
\installfont{bgxc1440}{grxc1440}{bgreek}{BCG}{cmr}{bx}{sc}{14}
\installfont{bgxc1728}{grxc1728}{bgreek}{BCG}{cmr}{bx}{sc}{17}
\installfont{bgxc2074}{grxc2074}{bgreek}{BCG}{cmr}{bx}{sc}{20}
\installfont{bgxc2488}{grxc2488}{bgreek}{BCG}{cmr}{bx}{sc}{25}

\endinstallfonts

\bye

%The following stuff is just for debugging. Use it or ignore it.

\tracingcommands=1

% This makes a raw font reencoded from the source PL font
% and a mtx file corresponding to each.
\transformfont{bgfr12}{\reencodefont{cbgreek}\frompl{grmn1200}}

\installfamily{BCG}{cmr}{}

% This makes a vpl file from the raw pl font and the two mtx files above
\installfont{bgfr12}{grmn1200}{bgreek}{BCG}{cmr}{m}{n}{12}

\endinstallfonts\bye


