summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/gillius/gillius2.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-11-05 01:07:47 +0000
committerKarl Berry <karl@freefriends.org>2013-11-05 01:07:47 +0000
commit79c300296bbe7c12c60b394dc5f3f861b176cfa3 (patch)
tree684cd6c0ad682812a5b8a98341a9434d1fef0cd5 /Master/texmf-dist/tex/latex/gillius/gillius2.sty
parent4e6ba94df901df9b66fd8690759d5155a8cf74ab (diff)
gillius (4nov13)
git-svn-id: svn://tug.org/texlive/trunk@32068 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/gillius/gillius2.sty')
-rw-r--r--Master/texmf-dist/tex/latex/gillius/gillius2.sty89
1 files changed, 89 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/gillius/gillius2.sty b/Master/texmf-dist/tex/latex/gillius/gillius2.sty
new file mode 100644
index 00000000000..91da29569f5
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/gillius/gillius2.sty
@@ -0,0 +1,89 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{gillius2}
+ [2013/11/03 (Bob Tennent) Supports Gillius No.2 fonts for all LaTeX engines.]
+
+\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp}
+
+\newif\ifgillius@otf
+\ifxetex
+ \gillius@otftrue
+\else\ifluatex
+ \gillius@otftrue
+\else % [pdf]LaTeX
+ \gillius@otffalse
+\fi\fi
+
+\newif\ifgillius@default \gillius@defaultfalse
+\newif\ifgillius@condensed \gillius@condensedfalse
+
+\newcommand*{\GilliusADFNoTwo@scale}{1}
+\DeclareOptionX{scaled}{\renewcommand*{\GilliusADFNoTwo@scale}{#1}}
+\DeclareOptionX{scale}{\renewcommand*{\GilliusADFNoTwo@scale}{#1}}
+
+\DeclareOptionX{default}{\gillius@defaulttrue}
+\DeclareOptionX{sfdefault}{\gillius@defaulttrue}
+\DeclareOptionX{type1}{\gillius@otffalse}
+\DeclareOptionX{condensed}{\gillius@condensedtrue}
+
+\ProcessOptionsX\relax
+
+\ifgillius@otf
+ \RequirePackage{fontspec}
+\else
+ \RequirePackage{fontenc,fontaxes}
+\fi
+
+\ifgillius@otf
+ \ifxetex\XeTeXtracingfonts=1\fi
+ \defaultfontfeatures{
+ Ligatures = TeX ,
+ Scale = \GilliusADFNoTwo@scale ,
+ Extension = .otf }
+ \ifgillius@condensed
+ \setsansfont
+ [ UprightFont = *-Regular ,
+ ItalicFont = *-Italic ,
+ BoldFont = *-Bold ,
+ BoldItalicFont = *-BoldItalic ]
+ {GilliusADFNo2Cond}
+ \else
+ \setsansfont
+ [ UprightFont = *-Regular ,
+ ItalicFont = *-Italic ,
+ BoldFont = *-Bold ,
+ BoldItalicFont = *-BoldItalic ]
+ {GilliusADFNo2}
+ \fi
+ % grab current family in case of subsequent change:
+ \let\gilliusfamily\sfdefault
+ \ifgillius@default\renewcommand*\familydefault{\gilliusfamily}\fi
+ \newfontfamily\gilliustwo
+ [ UprightFont = *-Regular ,
+ ItalicFont = *-Italic ,
+ BoldFont = *-Bold ,
+ BoldItalicFont = *-BoldItalic ]
+ {GilliusADFNo2}
+ \newfontfamily\gilliustwocondensed
+ [ UprightFont = *-Regular ,
+ ItalicFont = *-Italic ,
+ BoldFont = *-Bold ,
+ BoldItalicFont = *-BoldItalic ]
+ {GilliusADFNo2Cond}
+
+\else % type1
+
+ \def\gilliusfamily{GilliusADFNoTwo-LF}
+ \def\gilliuscondensedfamily{GilliusADFNoTwoCond-LF}
+ \newcommand*\gilliustwo{\fontfamily{\gilliusfamily}\selectfont}
+ \newcommand*\gilliustwocondensed{\fontfamily{\gilliuscondensedfamily}\selectfont}
+ \def\sfdefault{\gilliusfamily}
+ \ifgillius@condensed\def\sfdefault{\gilliuscondensedfamily}\fi
+ \ifgillius@default\edef\familydefault{\sfdefault}\fi
+\fi
+
+\ifgillius@otf
+% turn off defaults in case other fonts are selected:
+ \defaultfontfeatures{}
+\fi
+
+\endinput