summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/oldstandard/OldStandard.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/oldstandard/OldStandard.sty')
-rw-r--r--Master/texmf-dist/tex/latex/oldstandard/OldStandard.sty73
1 files changed, 73 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/oldstandard/OldStandard.sty b/Master/texmf-dist/tex/latex/oldstandard/OldStandard.sty
new file mode 100644
index 00000000000..de3625480bc
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/oldstandard/OldStandard.sty
@@ -0,0 +1,73 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{OldStandard}
+ [2016/07/02 (Bob Tennent and autoinst) Style file for Old Standard fonts.]
+
+\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp}
+
+\newif\ifoldstandard@otf
+\ifxetex
+ \oldstandard@otftrue
+\else\ifluatex
+ \oldstandard@otftrue
+\else % [pdf]LaTeX
+ \oldstandard@otffalse
+ \fi\fi
+
+\RequirePackage{fontaxes}
+
+\newcommand*{\OldStandard@scale}{1}
+\RequirePackage{xkeyval}
+\DeclareOptionX{scaled}{\renewcommand*{\OldStandard@scale}{#1}}
+\DeclareOptionX{scale}{\renewcommand*{\OldStandard@scale}{#1}}
+\DeclareOptionX{type1}{\oldstandard@otffalse}
+
+\ProcessOptionsX\relax
+
+\ifoldstandard@otf
+ \RequirePackage{fontspec}
+\else
+ \RequirePackage{fontenc,fontaxes}
+\fi
+
+\ifoldstandard@otf
+ \ifxetex\XeTeXtracingfonts=1\fi
+ \defaultfontfeatures{
+ Ligatures = TeX ,
+ Scale = \OldStandard@scale ,
+ Extension = .otf }
+ \setmainfont
+ [ UprightFont = *-Regular ,
+ ItalicFont = *-Italic ,
+ BoldFont = *-Bold ,
+ ]
+ {OldStandard}
+ \newfontfamily\oldstandard
+ [ UprightFont = *-Regular ,
+ ItalicFont = *-Italic ,
+ BoldFont = *-Bold ,
+ ]
+ {OldStandard}
+
+ \providecommand\sufigures{\addfontfeatures{VerticalPosition=Superior}}
+
+
+\else % type1
+
+ \def\oldstandard@family{OldStandard-TLF}
+ \renewcommand*\rmdefault{\oldstandard@family}
+ \newcommand*\oldstandard{\fontfamily{\oldstandard@family}\selectfont}
+
+ \fa@naming@exception{figures}{{superior}{proportional}}{Sup}
+ \fa@naming@exception{figures}{{superior}{tabular}}{Sup}
+ \providecommand\sufigures{\@nomath\sufigures\fontfigurestyle{superior}\selectfont}
+
+\fi
+
+\DeclareTextFontCommand{\textsu}{\sufigures}
+
+
+\ifoldstandard@otf
+ \defaultfontfeatures{}
+\fi
+
+\endinput