\ProvidesPackage{forum}[%
   2020/07/25 (Bob Tennent)  Supports Forum font for xeLaTeX and luaLaTeX. ] 

\RequirePackage{iftex}

\ifpdftex
\PackageError{forum}{%
 *****************************************\MessageBreak
  Please process using XeLaTeX or luaLaTeX\MessageBreak
 *****************************************}
\fi  

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

\ProcessOptionsX\relax

  \RequirePackage{fontspec}

  \ifxetex\XeTeXtracingfonts=1\fi
  \defaultfontfeatures{
     Ligatures = TeX ,
     Extension = .ttf ,
  }
  \setmainfont
      [ UprightFont    = *-Regular ,
      ]
      {Forum}
  \newfontfamily\forum
      [ UprightFont    = *-Regular ,
      ]
      {Forum}

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

\endinput

