%% Generated by autoinst on 2015/01/11
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{SourceSerifPro}
    [2015/01/11 (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}{{inferior}{proportional}}{Inf}
    \fa@naming@exception{figures}{{inferior}{tabular}}{Inf}
    \def\infigures{\@nomath\infigures
        \fontfigurestyle{inferior}\selectfont}
    \DeclareTextFontCommand{\textin}{\infigures}
    \let\textinferior\textin

    \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
