summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lobster2/LobsterTwo.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-01-09 23:59:21 +0000
committerKarl Berry <karl@freefriends.org>2014-01-09 23:59:21 +0000
commit3e2f1017cfd105d03e88036cae3a040a59d1c3b5 (patch)
tree786bcaea5dd8ada52bcf49e97d197efe8f194074 /Master/texmf-dist/tex/latex/lobster2/LobsterTwo.sty
parent04d22733fda61f856746b38a37add87bd19aa035 (diff)
lobster2 (9jan14)
git-svn-id: svn://tug.org/texlive/trunk@32617 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lobster2/LobsterTwo.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lobster2/LobsterTwo.sty63
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
+