\ProvidesPackage{LobsterTwo}[%
   2020/07/22 (Bob Tennent)  Supports Lobster Two fonts for modern LaTeX engines. ] 

\RequirePackage{iftex}

\ifpdftex
\PackageError{lobster2}{%
 *****************************************\MessageBreak
  Please Process using xelatex or lualatex\MessageBreak
 *****************************************}
\fi  


\newcommand*{\LobsterTwo@scale}{1}  
\RequirePackage{xkeyval}
\DeclareOptionX{scaled}{\renewcommand*{\LobsterTwo@scale}{#1}}
\DeclareOptionX{scale}{\renewcommand*{\LobsterTwo@scale}{#1}}

\ProcessOptionsX\relax

\RequirePackage{fontspec}

\ifxetex\XeTeXtracingfonts=1\fi
\defaultfontfeatures{
 Ligatures = TeX ,
 Extension = .ttf ,
 Scale = \LobsterTwo@scale ,
}
\setmainfont
  [ UprightFont    = *-Regular ,
    ItalicFont     = *-Italic ,
    BoldFont       = *-Bold , 
    BoldItalicFont = *-BoldItalic ]
  {LobsterTwo}
\newfontfamily\LobsterTwo
  [ UprightFont    = *-Regular ,
    ItalicFont     = *-Italic ,
    BoldFont       = *-Bold , 
    BoldItalicFont = *-BoldItalic ]
  {LobsterTwo}

% turn off defaults in case other fonts are selected:
\defaultfontfeatures{}

\endinput

