diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/cinzel/cinzel.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/cinzel/cinzel.sty | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/cinzel/cinzel.sty b/Master/texmf-dist/tex/latex/cinzel/cinzel.sty new file mode 100644 index 00000000000..7bae8ecd449 --- /dev/null +++ b/Master/texmf-dist/tex/latex/cinzel/cinzel.sty @@ -0,0 +1,75 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{cinzel} + [2014/03/30 (Bob Tennent) Supports Cinzel and CinzelDecorative for all LaTeX engines.] + +\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp} + +\newif\ifcinzel@otf +\ifxetex + \cinzel@otftrue +\else\ifluatex + \cinzel@otftrue +\else % [pdf]LaTeX + \cinzel@otffalse +\fi\fi + +\newif\ifcinzel@black \cinzel@blackfalse + +\DeclareOptionX{type1}{\cinzel@otffalse} +\DeclareOptionX{black}{\cinzel@blacktrue} +\ProcessOptionsX\relax + +\ifcinzel@otf + \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@otf + \RequirePackage{fontspec} +\else + \RequirePackage{fontenc,fontaxes,mweights} +\fi + + +\ifcinzel@otf + \ifxetex\XeTeXtracingfonts=1\fi + \defaultfontfeatures{ + Ligatures = TeX , + Extension = .otf } + \setmainfont + [ UprightFont = *-Regular , + ItalicFont = *Decorative-Regular , + BoldFont = *-\cinzel@boldstyle , + BoldItalicFont = *Decorative-\cinzel@boldstyle ] + {Cinzel} + \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}\def\itshape{\fontfamily{CinzelDecorative-LF}\fontshape{n}\selectfont}\selectfont} + \def\rmdefault{\cinzelfamily} + \def\itshape{\fontfamily{CinzelDecorative-LF}\fontshape{n}\selectfont} + \newcommand*\cinzelblack{\fontfamily{\cinzelfamily}\fontseries{k}\def\itshape{\fontfamily{CinzelDecorative-LF}\fontshape{n}\selectfont}\selectfont} + +\fi + +\ifcinzel@otf +% turn off defaults in case other fonts are selected: + \defaultfontfeatures{} +\fi + +\endinput |