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/cinzel/latex/cinzel.sty | 90 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 90 insertions(+)
 create mode 100644 fonts/cinzel/latex/cinzel.sty

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

diff --git a/fonts/cinzel/latex/cinzel.sty b/fonts/cinzel/latex/cinzel.sty
new file mode 100644
index 0000000000..0509bdbe87
--- /dev/null
+++ b/fonts/cinzel/latex/cinzel.sty
@@ -0,0 +1,90 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{cinzel}
+    [2019/05/12  (Bob Tennent)  Supports Cinzel and CinzelDecorative for all LaTeX engines.]
+
+\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp}
+
+\newif\ifcinzel@ttf 
+\ifxetex
+  \cinzel@ttftrue
+\else\ifluatex
+  \cinzel@ttftrue
+\else  % [pdf]LaTeX
+  \cinzel@ttffalse
+\fi\fi
+
+\newif\ifcinzel@black \cinzel@blackfalse
+\newif\ifcinzel@default \cinzel@defaultfalse
+
+\DeclareOptionX{type1}{\cinzel@ttffalse}
+\DeclareOptionX{black}{\cinzel@blacktrue}
+\DeclareOptionX{default}{\cinzel@defaulttrue}
+\ProcessOptionsX\relax
+
+\ifcinzel@ttf
+  \def\cinzel@boldstyle{Bold}
+  \ifcinzel@black\def\cinzel@boldstyle{Black}\fi
+
+\else % type1
+  \def\bfseries@rm{b}
+  \ifcinzel@black\def\bfseries@rm{k}\fi
+
+\fi
+
+\ifcinzel@ttf
+  \RequirePackage{fontspec}
+\else
+  \RequirePackage{fontenc,fontaxes,mweights}
+\fi
+
+
+\ifcinzel@ttf
+  \ifxetex\XeTeXtracingfonts=1\fi
+  \defaultfontfeatures{
+        Ligatures = TeX ,
+        Extension = .ttf }
+  \ifcinzel@default
+      \setmainfont
+      [ UprightFont    = *-Regular ,
+        ItalicFont     = *Decorative-Regular ,
+        BoldFont       = *-\cinzel@boldstyle , 
+        BoldItalicFont = *Decorative-\cinzel@boldstyle ]
+      {Cinzel}
+  \fi
+  \newfontfamily\cinzel
+      [ UprightFont    = *-Regular ,
+        ItalicFont     = *Decorative-Regular ,
+        BoldFont       = *-\cinzel@boldstyle , 
+        BoldItalicFont = *Decorative-\cinzel@boldstyle ]
+      {Cinzel}
+  \newfontfamily\cinzelblack
+      [ UprightFont    = *-Black ,
+        ItalicFont     = *Decorative-Black ]
+      {Cinzel}
+
+\else % type1
+  \def\cinzelfamily{Cinzel-LF}
+  \newcommand*\cinzel{%
+    \fontfamily{\cinzelfamily}\selectfont
+    \def\itshape{\ifx\f@family\cinzelfamily\fontfamily{CinzelDecorative-LF}\fontshape{n}\else\fontshape{\itdefault}\fi\selectfont}
+  }
+  \ifcinzel@default
+     \def\rmdefault{\cinzelfamily}
+     \def\itshape{\ifx\f@family\cinzelfamily\fontfamily{CinzelDecorative-LF}\fontshape{n}\else\fontshape{\itdefault}\fi\selectfont}
+  \fi
+  \newcommand*\cinzelblack{%
+    \fontfamily{\cinzelfamily}\fontseries{k}\selectfont
+    \def\itshape{\ifx\f@family\cinzelfamily\fontfamily{CinzelDecorative-LF}\fontseries{k}\else\fontshape{\itdefault}\fi\selectfont}
+  }
+
+\fi
+
+\DeclareTextFontCommand{\textcinzel}{\cinzel}
+\DeclareTextFontCommand{\textcinzelblack}{\cinzelblack}
+
+\ifcinzel@ttf
+% turn off defaults in case other fonts are selected:
+  \defaultfontfeatures{}
+\fi
+
+\endinput
-- 
cgit v1.2.3

