diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lobster2/LobsterTwo.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lobster2/LobsterTwo.sty | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/lobster2/LobsterTwo.sty b/Master/texmf-dist/tex/latex/lobster2/LobsterTwo.sty new file mode 100644 index 00000000000..82599deff21 --- /dev/null +++ b/Master/texmf-dist/tex/latex/lobster2/LobsterTwo.sty @@ -0,0 +1,63 @@ +\ProvidesPackage{LobsterTwo}[% + 2014/01/08 (Bob Tennent) Supports Lobster Two fonts for all LaTeX engines. ] + +\RequirePackage{ifxetex,ifluatex,textcomp} + +\newif\ifLobsterTwo@otf +\ifxetex + \LobsterTwo@otftrue +\else\ifluatex + \LobsterTwo@otftrue +\else % [pdf]LaTeX + \LobsterTwo@otffalse +\fi\fi + +\newcommand*{\LobsterTwo@scale}{1} +\RequirePackage{xkeyval} +\DeclareOptionX{scaled}{\renewcommand*{\LobsterTwo@scale}{#1}} +\DeclareOptionX{scale}{\renewcommand*{\LobsterTwo@scale}{#1}} + +\DeclareOptionX{type1}{\LobsterTwo@otffalse} + +\ProcessOptionsX\relax + +\ifLobsterTwo@otf + \RequirePackage{fontspec} +\else + \RequirePackage{fontenc,fontaxes} +\fi + +\ifLobsterTwo@otf + \ifxetex\XeTeXtracingfonts=1\fi + \defaultfontfeatures{ + Ligatures = TeX , + Extension = .otf , + } + \setmainfont + [ UprightFont = *-Regular , + ItalicFont = *-Italic , + BoldFont = *-Bold , + BoldItalicFont = *-BoldItalic ] + {LobsterTwo} + \newfontfamily\LobsterTwo + [ UprightFont = *-Regular , + ItalicFont = *-Italic , + BoldFont = *-Bold , + BoldItalicFont = *-BoldItalic ] + {LobsterTwo} + +\else % type1 + + \def\LobsterTwofamily{LobsterTwo-LF} + \renewcommand*\rmdefault{\LobsterTwofamily} + \newcommand*\LobsterTwo{\fontfamily{\LobsterTwofamily}\selectfont} + +\fi + +% turn off defaults in case other fonts are selected: +\ifLobsterTwo@otf + \defaultfontfeatures{} +\fi + +\endinput + |