%% Generated by autoinst on 2020/06/05
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{courierten}
    [2020/06/05 (autoinst)  Style file for Courier 10 Pitch BT.]

\RequirePackage{fontenc}
\RequirePackage{textcomp}
\RequirePackage{ifthen}
\IfFileExists{mweights.sty}{\RequirePackage{mweights}}{}
\IfFileExists{fontaxes.sty}{
    \RequirePackage{fontaxes}
}{}

\RequirePackage{xkeyval}
\newcommand*{\CourierOneZeroPitch@scale}{1}
\DeclareOptionX{scale}{\renewcommand*{\CourierOneZeroPitch@scale}{#1}}
\DeclareOptionX{scaled}{\renewcommand*{\CourierOneZeroPitch@scale}{#1}}

\DeclareOptionX{lining}{\edef\CourierOneZeroPitch@figurestyle{LF}}
\DeclareOptionX{tabular}{\edef\CourierOneZeroPitch@figurealign{T}}
\DeclareOptionX{mainfont}{
    \renewcommand{\familydefault}{\ttdefault}
}
\DeclareOptionX{bold}{\edef\bfseries@tt{bold}}
\DeclareOptionX{regular}{\edef\mdseries@tt{regular}}
\ExecuteOptionsX{lining,tabular,bold,regular}
\ProcessOptionsX\relax

\ifthenelse{\equal{\CourierOneZeroPitch@scale}{MatchLowercase}}
    {\newlength{\CourierOneZeroPitch@defaultx}
     \settoheight{\CourierOneZeroPitch@defaultx}{x}
     \newlength{\CourierOneZeroPitch@xheight}
     \settoheight{\CourierOneZeroPitch@xheight}
        {{\font\testfont=Courier10PitchBT-Roman-tlf-ot1 at \f@size pt\testfont x}}
     \renewcommand*{\CourierOneZeroPitch@scale}
        {\strip@pt\dimexpr\number\numexpr\number\dimexpr\CourierOneZeroPitch@defaultx\relax*65536/\number\dimexpr\CourierOneZeroPitch@xheight\relax\relax sp\relax}
    }
    {}

\renewcommand*
    {\ttdefault}
    {CourierOneZeroPitch-\CourierOneZeroPitch@figurealign\CourierOneZeroPitch@figurestyle}

\endinput