% lexend
% The Lexend fonts for XeLaTeX and LuaLaTeX through fontspec
% 
% (c) Yannick Schinko
%
%% This program can be redistributed and/or modified under the terms
%% of the LaTeX Project Public License Distributed from CTAN archives
%% in directory macros/latex/base/lppl.txt.
% 
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{lexend}
  [2020/02/19 1.0.2.53 The Lexend fonts for XeLaTeX and LuaLaTeX through fontspec]

% Packages/Dependencies
\RequirePackage{expl3}
\RequirePackage{fontspec}
\RequirePackage{kvoptions}

% Package options
\DeclareBoolOption[true]{main}
\DeclareComplementaryOption{nomain}{main}

\DeclareBoolOption[true]{sans}
\DeclareComplementaryOption{nosans}{sans}

\ProcessKeyvalOptions*{}

% Font list
\def\LexendVariants{
LexendDeca,%
LexendExa,%
LexendGiga,%
LexendMega,%
LexendPeta,%
LexendTera,%
LexendZetta%
}

% Font aliases
%% Iterate over all known fonts and create aliases
\ExplSyntaxOn
\clist_map_inline:Nn \LexendVariants { \exp_args:Nc \newfontfamily { #1 } { #1 } }
\ExplSyntaxOff

% Set main fonts
\iflexend@main
  \setmainfont{LexendDeca}
\fi

\iflexend@sans
  \setsansfont{LexendGiga}
\fi

\endinput
%%
%% End of file lexend.sty.
