%% $Id: tac-otf.sty 681 2017-12-07 21:59:47Z herbert $
\ProvidesPackage{tac-otf}[%
  2016/05/14 (Herbert Voss) Supports times-arial-courier fonts for all luatex/xetex v. 0.01.] 

\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp}

\newif\iftac@lining \tac@liningtrue         
\newif\ifbiolinum@lining \biolinum@liningtrue            
\newif\iftac@tabular \tac@tabulartrue
\newif\ifbiolinum@tabular \biolinum@tabulartrue
\newif\iftac@semibold \tac@semiboldfalse

\DeclareOptionX{lining}[true]{\@nameuse{tac@lining#1}}
\DeclareOptionX{nf}[true]{%
  \@nameuse{tac@lining#1}
  \iftac@lining\tac@newfigdefaults\fi
}
\DeclareOptionX{lf}[true]{\iftac@lining\tac@newfigdefaults\fi}
\DeclareOptionX{oldstyle}[true]{\iftac@lining\tac@newfigdefaults\fi}
\DeclareOptionX{osf}[true]{\iftac@lining\tac@newfigdefaults\fi}
\DeclareOptionX{tabular}[true]{\iftac@tabular\tac@newfigdefaults\fi}
\DeclareOptionX{t}[true]{\iftac@tabular\tac@newfigdefaults\fi}
\DeclareOptionX{proportional}[true]{\iftac@tabular\tac@newfigdefaults\fi}
\DeclareOptionX{p}[true]{\iftac@tabular\tac@newfigdefaults\fi}
\DeclareOptionX{semibold}[true]{\@nameuse{tac@semibold#1}}
\DeclareOptionX{sb}[true]{\@nameuse{tac@semibold#1}}
\DeclareOptionX{bold}[true]{\tac@semiboldfalse\else\tac@semiboldtrue\fi}

\newcommand*\tacMM@{}  
\newcommand*\tacRM@{}  
\newcommand*\tacSS@{}
\newcommand*\tacTT@{Scale=MatchLowercase,FakeStretch=0.8}  
\DeclareOptionX{MM}{\renewcommand*\tacMM@{#1}}
\DeclareOptionX{RM}{\renewcommand*\tacRM@{#1}}
\DeclareOptionX{SS}{\renewcommand*\tacSS@{#1}}
\DeclareOptionX{TT}{\renewcommand*\tacTT@{#1}}

\def\tac@defaultfeatures{}
\DeclareOptionX{defaultfeatures}{\def\tac@defaultfeatures{#1}}

\ProcessOptionsX\relax

\iftac@lining
    \def\tac@figurestyle{Lining}
\else
    \def\tac@figurestyle{OldStyle}
\fi

\iftac@tabular
    \def\tac@figurealign{Monospaced} 
\else
    \def\tac@figurealign{Proportional} 
\fi

\iftac@semibold
     \def\tac@boldstyle{bold} 
\else
    \def\tac@boldstyle{semibold} 
\fi

\RequirePackage{unicode-math}

\ifxetex\XeTeXtracingfonts=1\fi
\defaultfontfeatures{
     Ligatures = TeX ,
     SmallCapsFeatures={Letters=SmallCaps\ifluatex,Renderer=Basic\fi} , 
     \tac@defaultfeatures
}

\setmainfont[\tacRM@]{Times New Roman}
\setsansfont{Arial Unicode MS}[\tacSS@]
\setmonofont{Courier}[\tacTT@]
\expandafter\setmathfont\expandafter[\tacMM@]{TeX Gyre Termes Math}

\endinput
