summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tinos/tinos.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/tinos/tinos.sty')
-rw-r--r--Master/texmf-dist/tex/latex/tinos/tinos.sty62
1 files changed, 62 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/tinos/tinos.sty b/Master/texmf-dist/tex/latex/tinos/tinos.sty
new file mode 100644
index 00000000000..47beb1ee66f
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/tinos/tinos.sty
@@ -0,0 +1,62 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{tinos}
+ [2017/01/03 (Bob Tennent) Supports Tinos fonts for all LaTeX engines.]
+
+\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp}
+
+\newif\iftinos@otf
+\ifxetex
+ \tinos@otftrue
+\else\ifluatex
+ \tinos@otftrue
+\else % [pdf]LaTeX
+ \tinos@otffalse
+\fi\fi
+
+
+\newcommand*{\Tinos@scale}{1}
+\DeclareOptionX{scaled}{\renewcommand*{\Tinos@scale}{#1}}
+\DeclareOptionX{scale}{\renewcommand*{\Tinos@scale}{#1}}
+
+
+\DeclareOptionX{type1}{\tinos@otffalse}
+
+\ProcessOptionsX\relax
+
+\iftinos@otf\else % type1
+ \def\tinos@figurestyle{LF}
+ \def\tinos@figurealign{T}
+\fi
+
+
+\iftinos@otf
+ \RequirePackage{fontspec}
+\else
+ \RequirePackage{fontenc,fontaxes}
+\fi
+
+\iftinos@otf
+ \ifxetex\XeTeXtracingfonts=1\fi
+ \defaultfontfeatures{
+ Ligatures = TeX ,
+ Scale = \Tinos@scale ,
+ Extension = .otf }
+ \setmainfont
+ [ UprightFont = *-Regular ,
+ ItalicFont = *-Italic ,
+ BoldFont = *-Bold ,
+ BoldItalicFont = *-BoldItalic ]
+ {Tinos}
+\else % type1
+ \def\tinosfamily{Tinos-\tinos@figurealign\tinos@figurestyle}
+ \newcommand*\tinos{\fontfamily{\tinos}\selectfont}
+ \def\rmdefault{\tinosfamily}
+\fi
+
+
+\iftinos@otf
+ % turn off defaults in case other fonts are selected:
+ \defaultfontfeatures{}
+\fi
+
+\endinput