summaryrefslogtreecommitdiff
path: root/fonts/courierten/tex/courierten.sty
blob: 4e7c5e2685619566b8e3ef65fd4c8d2b9db585ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
%% 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