From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- fonts/lobster2/latex/LobsterTwo.sty | 63 +++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 fonts/lobster2/latex/LobsterTwo.sty (limited to 'fonts/lobster2/latex/LobsterTwo.sty') diff --git a/fonts/lobster2/latex/LobsterTwo.sty b/fonts/lobster2/latex/LobsterTwo.sty new file mode 100644 index 0000000000..82599deff2 --- /dev/null +++ b/fonts/lobster2/latex/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 + -- cgit v1.2.3