% \iffalse meta-comment
%
% Copyright (C) 1989--1993 by Frank Mittelbach, Rainer Schoepf.
% All rights reserved.
% 
% This file is part of the NFSS2 (New Font Selection Scheme) package.
% 
%  This package is distributed in the hope that it will be useful,
%  but WITHOUT ANY WARRANTY; without even the implied warranty of
%  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
% 
% 
% IMPORTANT NOTICE:
% 
% For error reports in case of UNCHANGED versions see readme files.
% 
% Please do not request updates from us directly.  Distribution is
% done through Mail-Servers and TeX organizations.
% 
% You are not allowed to change this file.  You may however copy
% this file to a file with a different name and then change the copy
% if you obey the restrictions on file changes described in
% readme.mz.
% 
% You are allowed to distribute this file under the condition that
% it is distributed together with all files mentioned in readme.mz8.
% If you receive only some of these files from someone, complain!
% 
% You are NOT ALLOWED to distribute this file alone.  You are NOT
% ALLOWED to take money for the distribution or use of either this
% file or a changed version, except for a nominal charge for copying
% etc.
% \fi
\def\fileversion{v2.1a}
\def\filedate{93/05/13}
\def\docdate {93/05/13}
% \CheckSum{110}
%
%\iffalse        This is a META comment
%
% File `appsfnts.dtx.
% Copyright (C) 1993 Frank Mittelbach and Rainer Sch\"opf,
% all rights reserved.
%
%\fi
%
% \changes{v2.1a}{93/05/13}{implemented new naming conventions}
%
% \MakeShortVerb\|
% \def\dst{\expandafter{\csname mediumseries\endcsname\sc docstrip}}
% \setcounter{StandardModuleDepth}{2}
%
% \title{The {\tt appsfnts.dtx} file\thanks {This file has version
%    number \fileversion, dated \filedate.  The documentation was last
%    revised on \docdate}\\ for use with NFSS2}
% \author{Frank Mittelbach \and Rainer Sch\"opf}
% \date{\filedate}
%
% \maketitle
%
% \section{Introduction}
%
% This file contains the external font information needed to load
% the AP-\TeX{} fonts which are sold by Kinch Computer Company.
%
% We produce a few style files for loading some of the AP-\TeX{}
% families. These are
% \begin{center}
% \begin{tabular}{ll}
%    nfaptim & loading AP-\TeX{} times for |\rm| \\
%    nfapbkm & loading AP-\TeX{} Bookman for |\rm| \\
%    nfapncs & loading AP-\TeX{} New Century Schoolbook for |\rm| \\
%    nfappal & loading AP-\TeX{} Palantino for |\rm| \\
%    nfaphelv & loading AP-\TeX{} Helvetica for |\sf|  \\
%    nfapavg & loading AP-\TeX{} Avant Garde for |\sf| \\
%    nfapcour & loading AP-\TeX{} Courier for |\tt|
%  \end{tabular}
%  \end{center}
%
% The style {\tt nfaphelv} defines an additional series command named
% |\condensed| for use with this family.
%
% \StopEventually{}
%
% \section{The \dst{} modules}
%
% The following modules are used to direct \dst{} in
% generating external files:
% \begin{center}
% \begin{tabular}{ll}
%   driver & produce a documentation driver file \\
%   style  & produce a style file \\
%   fd     & produce a font definition file \\[2pt]
%   tim    & Times fonts (style or fd) \\
%   bkm    & Bookman fonts (style or fd) \\
%   ncs    & New Century Schoolbook fonts (style or fd) \\
%   pal    & Palantino fonts (style or fd) \\
%   hlv    & Helvetica fonts (style or fd) \\
%   hvn    & Helvetica fonts condensed  \\
%   avg    & Avant Garde fonts (style or fd) \\
%   cou    & Courier (style or fd)  
% \end{tabular}
% \end{center}
% A typical \dst{} command file would then have entries like:
% \begin{verbatim}
%\generateFile{OT1tim.fd}{t}{\from{appsfnts.fdd}{fd,tim}}
%\end{verbatim}
% for generating {\tt.fd} files and
% \begin{verbatim}
%\generateFile{nfaptim.sty}{t}{\from{appsfnts.fdd}{style,tim}}
%\end{verbatim}
% for generating the corresponding style file.
% 
%
% \section{The styles}
%  For the style files we have to make sure that they run under NFSS
%  release 2, so we check for appropriate command names.
%    \begin{macrocode}
%<*style>
\@ifundefined{DeclareFontShape}
     {\@ifundefined{selectfont}
        {\@latexerr{The 
%<+tim>`nfaptim' 
%<+bkm>`nfapbkm' 
%<+ncs>`nfapncs' 
%<+pal>`nfappal' 
%<+hlv>`nfaphelv' 
%<+avg>`nfapavg' 
%<+cou>`nfapcour' 
                    style option can only be used
                    with the new font selection scheme}\@eha}
        {\@latexerr{The 
%<+tim>`nfaptim' 
%<+bkm>`nfapbkm' 
%<+ncs>`nfapncs' 
%<+pal>`nfappal' 
%<+hlv>`nfaphelv' 
%<+cou>`nfapcour' 
                style option can only be used
                with the new font selection scheme *release 2*}
               {Your format contains NFSS release 1, but this style
                option was developed for release 2.}
        }
      \endinput}
     {}
%    \end{macrocode}
%
%    Styles that change the |\rmdefault| value are also changing the
%    substitution defaults for the |OT1| encoding. If |\familydefault|
%    is not changed directly, then the change to |\rmdefault| will
%    automatically change the main font too.
%    \begin{macrocode}
%<+tim>\DeclareFontSubstitution{OT1}{tim}{m}{n}
%<+tim>\renewcommand{\rmdefault}{tim}
%<+bkm>\DeclareFontSubstitution{OT1}{bkm}{m}{n}
%<+bkm>\renewcommand{\rmdefault}{bkm}
%<+ncs>\DeclareFontSubstitution{OT1}{ncs}{m}{n}
%<+ncs>\renewcommand{\rmdefault}{ncs}
%<+pal>\DeclareFontSubstitution{OT1}{pal}{m}{n}
%<+pal>\renewcommand{\rmdefault}{pal}
%    \end{macrocode}
%    
%    For the other styles we change |\sfdefault| or |\ttdefault| as
%    appropriate.
%    \begin{macrocode}
%<+avg>\renewcommand{\sfdefault}{avg}
%<+cou>\renewcommand{\ttdefault}{cou}
%<*hlv>
\renewcommand{\sfdefault}{hlv}
%    \end{macrocode}
%    For the |nfaphvl| style we also introduce |\condensed| as a
%    series shape since this family contains a condensed series.
%    \begin{macrocode}
\newcommand{\condensed}{\fontseries{c}\selectfont}
%</hlv>
%    \end{macrocode}
%    Finally for all styles we change the default for |\bf| to switch
%    to |b| since there are no bold extended fonts in these families.
%    \begin{macrocode}
\renewcommand{\bfdefault}{b}
%</style>
%    \end{macrocode}
%
% \section{The {\tt.fd} files}
%
% Now it is time to define the {\em encoding/family/series/shape\/}
% combinations.  Since the AP-\TeX{} fonts are bitmap versions of some
% PostScript fonts, all fonts are available in a fixed set of sizes
% and all produced by scaling from one tfm file. Thus the font shape
% group declarations look all the same.
% 
%
% As always we begin by identifying the latest version of the files
%    in the {\sf log} file. The explicit spaces are necessary in an
%    |.fd| file and the |\string| guards against situations where |`|
%    is active.
%    \begin{macrocode}
%<*fd>
\wlog{Fontdef\space file\space produced\space from:\space
 \string`appsfnts.dtx'\space \fileversion\space <\filedate>\space 
 (FMi\space and\space RmS)}
%    \end{macrocode}
%
% \subsection{Roman typefaces}
%
% Provided are Palantino, Times, Bookman and New Century Schoolbook.
%    \begin{macrocode}
%<*pal> 
\DeclareFontFamily{OT1}{pal}{}
\DeclareFontShape{OT1}{pal}{m}{n}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmpalr
   }{}
\DeclareFontShape{OT1}{pal}{m}{it}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmpali
   }{}
\DeclareFontShape{OT1}{pal}{b}{n}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmpalb
   }{}
\DeclareFontShape{OT1}{pal}{b}{it}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmpalbi
   }{}
%</pal> 
%    \end{macrocode}
%    
%    The times fonts exist in a few additional sizes which is of some
%    use if you want to use them for slides.
%    \begin{macrocode}
%<*tim> 
\DeclareFontFamily{OT1}{tim}{}
\DeclareFontShape{OT1}{tim}{m}{n}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> <29.9> <35.8> <43> <51.6> <61.9> <74.3> psmtimr
   }{}
\DeclareFontShape{OT1}{tim}{m}{it}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmtimi
   }{}
\DeclareFontShape{OT1}{tim}{b}{n}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> <29.9> <35.8> <43> <61.9> <74.3> psmtimb
   }{}
\DeclareFontShape{OT1}{tim}{b}{it}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmtimbi
   }{}
%</tim> 
%
%<*ncs> 
\DeclareFontFamily{OT1}{ncs}{}
\DeclareFontShape{OT1}{ncs}{m}{n}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmncsr
   }{}
\DeclareFontShape{OT1}{ncs}{m}{it}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmncsi
   }{}
\DeclareFontShape{OT1}{ncs}{b}{n}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmncsb
   }{}
\DeclareFontShape{OT1}{ncs}{b}{it}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmncsbi
   }{}
%</ncs> 
%    \end{macrocode}
% The ``Bookman'' family exists according to its name in a ``light'' and
% and a ``demi (bold)'' series. In my eyes it looks more ``medium'' and
% ``bold'' so we follow the same pattern as above.
%    \begin{macrocode}
%<*bkm> 
\DeclareFontFamily{OT1}{bkm}{}
\DeclareFontShape{OT1}{bkm}{m}{n}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmbkml
   }{}
\DeclareFontShape{OT1}{bkm}{m}{it}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmbkmli
   }{}
\DeclareFontShape{OT1}{bkm}{b}{n}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmbkmd
   }{}
\DeclareFontShape{OT1}{bkm}{b}{it}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmbkmdi
   }{}
%</bkm> 
%    \end{macrocode}
%
%
%    \subsection{Sans serif font shapes}
%
%  Provided are Avant Garde and Helvetica.
%    \begin{macrocode}
%<*avg> 
\DeclareFontFamily{OT1}{avg}{}
\DeclareFontShape{OT1}{avg}{m}{n}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmavgb
   }{}
\DeclareFontShape{OT1}{avg}{m}{sl}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmavgbo
   }{}
\DeclareFontShape{OT1}{avg}{b}{n}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmavgd
   }{}
\DeclareFontShape{OT1}{avg}{b}{sl}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmavgdo
   }{}
%</avg> 
%<*hlv> 
\DeclareFontFamily{OT1}{hlv}{}
\DeclareFontShape{OT1}{hlv}{m}{n}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmhlv
   }{}
\DeclareFontShape{OT1}{hlv}{m}{sl}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmhlvo
   }{}
\DeclareFontShape{OT1}{hlv}{b}{n}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmhlvb
   }{}
\DeclareFontShape{OT1}{hlv}{b}{sl}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmhlvbo
   }{}
%</hlv> 
%    \end{macrocode}
%    There also exist a condensed version of Helvetica.
%    \begin{macrocode}
%<*hvn> 
\DeclareFontShape{OT1}{hlv}{c}{n}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmhvn
   }{}
\DeclareFontShape{OT1}{hlv}{c}{sl}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmhvno
   }{}
\DeclareFontShape{OT1}{hlv}{bc}{n}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmhvnb
   }{}
\DeclareFontShape{OT1}{hlv}{bc}{sl}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmhvnbo
   }{}
%</hvn> 
%    \end{macrocode}
%
%    \subsection{Typewriter font shapes}
%
%    \begin{macrocode}
%<*cou> 
\DeclareFontFamily{OT1}{cou}{}
\DeclareFontShape{OT1}{cou}{m}{n}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmcou
   }{}
\DeclareFontShape{OT1}{cou}{m}{sl}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmcouo
   }{}
\DeclareFontShape{OT1}{cou}{b}{n}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmcoub
   }{}
\DeclareFontShape{OT1}{cou}{b}{sl}{
     <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.3>
     <20.7> <24.9> psmcoubo
   }{}
%</cou> 
%</fd>
%    \end{macrocode}
%
% \section{A driver for this document}
%
% The next bit of code contains the documentation driver file for
% \TeX{}, i.e., the file that will produce the documentation you are
% currently reading. It will be extracted from this file by the \dst{}
% program.
%    \begin{macrocode}
%<*driver>
\documentstyle[doc]{article}

% dimensions from ltugboat.sty:

\setlength\textwidth{31pc} 
\setlength\textheight{54pc}
\setlength{\parindent}{0pt}
\setlength{\parskip}{2pt plus 1pt minus 1pt}
\setlength{\oddsidemargin}{8pc} 
\setlength{\marginparwidth}{8pc}
\setlength{\topmargin}{-2.5pc} 
\setlength{\headsep}{20pt}
\setlength{\columnsep}{1.5pc} 
\setlength{\columnwidth}{18.75pc}

\DisableCrossrefs

\CodelineIndex     % Index code by line number

%\OnlyDescription  % comment out for implementation details
\begin{document}
   \DocInput{appsfnts.dtx}
\end{document}
%</driver>
%    \end{macrocode}
%
%
%    The next line goes into all files and in addition prevents \dst{}
%    from adding any further code from the main source file (such as a
%    character table.
%    \begin{macrocode}
\endinput
%    \end{macrocode}
%
% \DeleteShortVerb{\|}
% \Finale
%
%% \CharacterTable
%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%%   Digits        \0\1\2\3\4\5\6\7\8\9
%%   Exclamation   \!     Double quote  \"     Hash (number) \#
%%   Dollar        \$     Percent       \%     Ampersand     \&
%%   Acute accent  \'     Left paren    \(     Right paren   \)
%%   Asterisk      \*     Plus          \+     Comma         \,
%%   Minus         \-     Point         \.     Solidus       \/
%%   Colon         \:     Semicolon     \;     Less than     \<
%%   Equals        \=     Greater than  \>     Question mark \?
%%   Commercial at \@     Left bracket  \[     Backslash     \\
%%   Right bracket \]     Circumflex    \^     Underscore    \_
%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%%   Right brace   \}     Tilde         \~}
%
\endinput
