<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{caladea}
    [2022/09/30 (Bob Tennent)  Supports Caladea fonts for LaTeX, pdfLaTeX, luaLaTeX and xeLaTeX.]

\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp}

\newif\ifcaladea@fontspec 
\ifxetex
  \caladea@fontspectrue
\else\ifluatex
  \caladea@fontspectrue
\else
  \caladea@fontspecfalse
\fi\fi

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

\ProcessOptionsX\relax

\ifcaladea@fontspec
  \RequirePackage{fontspec}
\fi

\ifcaladea@fontspec
  \defaultfontfeatures{
        Ligatures = TeX ,
        Scale     = \Caladea@scale ,
        Extension = .ttf }
  \setmainfont
      [ UprightFont    = *-Regular ,
        ItalicFont     = *-Italic ,
        BoldFont       = *-Bold , 
        BoldItalicFont = *-BoldItalic ]
      {Caladea}
  % grab current family in case of subsequent change:
  \let\caladeafamily\rmdefault  
  \newfontfamily\caladea
      [ UprightFont    = *-Regular ,
        ItalicFont     = *-Italic ,
        BoldFont       = *-Bold , 
        BoldItalicFont = *-BoldItalic 
      ]
      {Caladea}

\else 

  \def\caladeafamily{Caladea-TLF}
  \newcommand*\caladea{\fontfamily{\caladeafamily}\selectfont}
  \def\rmdefault{\caladeafamily}

\fi

\ifcaladea@fontspec
% turn off defaults in case other fonts are selected:
  \defaultfontfeatures{}
\fi

\endinput
</pre></body></html>