From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Mon, 2 Sep 2019 13:46:59 +0900
Subject: Initial commit

---
 fonts/tinos/latex/tinos.sty | 62 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 62 insertions(+)
 create mode 100644 fonts/tinos/latex/tinos.sty

(limited to 'fonts/tinos/latex/tinos.sty')

diff --git a/fonts/tinos/latex/tinos.sty b/fonts/tinos/latex/tinos.sty
new file mode 100644
index 0000000000..087b29cb9e
--- /dev/null
+++ b/fonts/tinos/latex/tinos.sty
@@ -0,0 +1,62 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{tinos}
+    [2017/01/05 (Bob Tennent)  Supports Tinos fonts for all LaTeX engines.]
+
+\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp}
+
+\newif\iftinos@ttf 
+\ifxetex
+  \tinos@ttftrue
+\else\ifluatex
+  \tinos@ttftrue
+\else  % [pdf]LaTeX
+  \tinos@ttffalse
+\fi\fi
+
+
+\newcommand*{\Tinos@scale}{1}
+\DeclareOptionX{scaled}{\renewcommand*{\Tinos@scale}{#1}}
+\DeclareOptionX{scale}{\renewcommand*{\Tinos@scale}{#1}}
+
+
+\DeclareOptionX{type1}{\tinos@ttffalse}
+
+\ProcessOptionsX\relax
+
+\iftinos@ttf\else % type1
+    \def\tinos@figurestyle{LF}
+    \def\tinos@figurealign{T}
+\fi
+
+
+\iftinos@ttf
+  \RequirePackage{fontspec}
+\else
+  \RequirePackage{fontenc,fontaxes}
+\fi
+
+\iftinos@ttf
+  \ifxetex\XeTeXtracingfonts=1\fi
+  \defaultfontfeatures{
+        Ligatures = TeX ,
+        Scale     = \Tinos@scale ,
+        Extension = .ttf }
+  \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@ttf
+  % turn off defaults in case other fonts are selected:
+  \defaultfontfeatures{}
+\fi
+
+\endinput
-- 
cgit v1.2.3

