%% Generated by autoinst on 2013/11/10
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{Merriweather}
    [2013/11/10 (autoinst)  Style file for Merriweather.]

\RequirePackage[T1,LY1]{fontenc}
\RequirePackage{textcomp}
\IfFileExists{mweights.sty}{\RequirePackage{mweights}}{}
\IfFileExists{fontaxes.sty}{
    \RequirePackage{fontaxes}
}{}

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

\DeclareOptionX{oldstyle}{\edef\Merriweather@figurestyle{OsF}}
\DeclareOptionX{proportional}{\edef\Merriweather@figurealign{}}
\DeclareOptionX{heavy}{\edef\bfseries@rm{h}}
\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}
    {Merriweather-\Merriweather@figurealign\Merriweather@figurestyle}
\renewcommand*{\familydefault}{\rmdefault}

\endinput
