%% Generated by autoinst on 2019/10/23
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{IBMPlexSans}
    [2019/10/23 (autoinst)  Style file for IBMPlexSans.]

\RequirePackage[T1,LY1,LGR]{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

}{}

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

\DeclareOptionX{lining}{\edef\IBMPlexSans@figurestyle{LF}}
\DeclareOptionX{tabular}{\edef\IBMPlexSans@figurealign{T}}
\DeclareOptionX{mainfont}{
    \renewcommand{\familydefault}{\sfdefault}
}
\DeclareOptionX{semibold}{\edef\bfseries@sf{semibold}}
\DeclareOptionX{bold}{\edef\bfseries@sf{bold}}
\DeclareOptionX{medium}{\edef\mdseries@sf{medium}}
\DeclareOptionX{text}{\edef\mdseries@sf{text}}
\DeclareOptionX{regular}{\edef\mdseries@sf{regular}}
\ExecuteOptionsX{lining,tabular,bold,regular}
\ProcessOptionsX\relax

\renewcommand*
    {\sfdefault}
    {IBMPlexSans-\IBMPlexSans@figurealign\IBMPlexSans@figurestyle}

\endinput
