%% Generated by autoinst on 2018/09/04
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{SourceSerifPro}
    [2018/09/04 (autoinst)  Style file for SourceSerifPro.]

\RequirePackage[T1,LY1]{fontenc}
\RequirePackage{textcomp}
\IfFileExists{mweights.sty}{\RequirePackage{mweights}}{}
\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

    \fa@naming@exception{figures}{{numerators}{proportional}}{Numr}
    \fa@naming@exception{figures}{{numerators}{tabular}}{Numr}

    \fa@naming@exception{figures}{{denominators}{proportional}}{Dnom}
    \fa@naming@exception{figures}{{denominators}{tabular}}{Dnom}

}{}

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

\DeclareOptionX{lining}{\edef\SourceSerifPro@figurestyle{LF}}
\DeclareOptionX{oldstyle}{\edef\SourceSerifPro@figurestyle{OsF}}
\DeclareOptionX{tabular}{\edef\SourceSerifPro@figurealign{T}}
\DeclareOptionX{proportional}{\edef\SourceSerifPro@figurealign{}}
\DeclareOptionX{black}{\edef\bfseries@rm{k}}
\DeclareOptionX{semibold}{\edef\bfseries@rm{sb}}
\DeclareOptionX{bold}{\edef\bfseries@rm{b}}
\DeclareOptionX{light}{\edef\mdseries@rm{l}}
\DeclareOptionX{regular}{\edef\mdseries@rm{m}}
\ExecuteOptionsX{oldstyle,proportional,bold,regular}
\ProcessOptionsX\relax

\renewcommand*
    {\rmdefault}
    {SourceSerifPro-\SourceSerifPro@figurealign\SourceSerifPro@figurestyle}
\renewcommand*{\familydefault}{\rmdefault}

\endinput
