\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{CharisSILCompact}
    [2021/08/19 (Bob Tennent)  Style file for CharisSILCompact fonts.]

\RequirePackage{iftex,xkeyval}

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

\newcommand*{\CharisSILCompact@scale}{1}
\DeclareOptionX{scaled}{\renewcommand*{\CharisSILCompact@scale}{#1}}
\DeclareOptionX{scale}{\renewcommand*{\CharisSILCompact@scale}{#1}}

\ProcessOptionsX\relax

\RequirePackage{fontspec}

\ifxetex\XeTeXtracingfonts=1\fi
\defaultfontfeatures{
      Ligatures = TeX ,
      Scale     = \CharisSILCompact@scale ,
      Extension = .ttf }
\setmainfont
    [ UprightFont    = *-R,
      ItalicFont     = *-I,
      BoldFont    = *-B,
      BoldItalicFont    = *-B,
    ]
    {CharisSIL-LiteracyCompact}
\newfontfamily\CharisSILCompact
    [ UprightFont    = *-R,
      ItalicFont     = *-I,
      BoldFont    = *-B,
      BoldItalicFont    = *-B,
    ]
    {CharisSIL-LiteracyCompact}

\defaultfontfeatures{}

\endinput
