\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{tempora}
    [2016/02/02 (msharpe)  Style file for Tempora.]

\RequirePackage[OT2,T2C,T2B,T2A,LGR,T1]{fontenc}
\RequirePackage{textcomp}
\IfFileExists{fontaxes.sty}{
    \RequirePackage{fontaxes}
    \fa@naming@exception{figures}{{superior}{proportional}}{Sup}
    \fa@naming@exception{figures}{{superior}{tabular}}{Sup}
    \def\sufigures{\@nomath\sufigures
        \fontfigurestyle{superior}\selectfont}
    \DeclareTextFontCommand{\textsu}{\sufigures}
    \let\textsuperior\textsu

}{}

\IfFileExists{xkeyval.sty}{
    \providecommand*{\LGCscale}{1}
    \newcommand*{\Tempora@scale}{1}
    \RequirePackage{xkeyval}
    \DeclareOptionX{scale}{\renewcommand*{\Tempora@scale}{##1}}
    \DeclareOptionX{scaled}{\renewcommand*{\Tempora@scale}{##1}}
    \let\LGCscale\Tempora@scale
}{
    \let\DeclareOptionX\DeclareOption
    \let\ExecuteOptionsX\ExecuteOptions
    \let\ProcessOptionsX\ProcessOptions
}

\DeclareOptionX{lining}{\edef\Tempora@figurestyle{LF}}
\DeclareOptionX{oldstyle}{\edef\Tempora@figurestyle{OsF}}
\ExecuteOptionsX{lining}
\ProcessOptionsX\relax

\renewcommand*{\rmdefault}{Tempora-T\Tempora@figurestyle}
\renewcommand*{\familydefault}{\rmdefault}

\endinput
