diff options
author | Karl Berry <karl@freefriends.org> | 2022-12-25 21:19:50 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-12-25 21:19:50 +0000 |
commit | e3e3482490502bea35ff2b1372140e5db47809f8 (patch) | |
tree | 32bc8a315d819ec5c78a7dd7714f28074ba930b8 /Master/texmf-dist/tex/latex/cabin | |
parent | 6f630003fb5786cf7cd7c9357181f48c5b5ca5aa (diff) |
cabin (25dec22)
git-svn-id: svn://tug.org/texlive/trunk@65358 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/cabin')
-rw-r--r-- | Master/texmf-dist/tex/latex/cabin/cabin.sty | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/cabin/cabin.sty b/Master/texmf-dist/tex/latex/cabin/cabin.sty index e702fa19296..209f5b8f634 100644 --- a/Master/texmf-dist/tex/latex/cabin/cabin.sty +++ b/Master/texmf-dist/tex/latex/cabin/cabin.sty @@ -1,9 +1,10 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{cabin} - [2022/09/13 (Bob Tennent) Supports Cabin fonts for all LaTeX engines.] + [2022/12/24 (Bob Tennent) Supports Cabin fonts for all LaTeX engines.] \RequirePackage{ifxetex,ifluatex,xkeyval,textcomp} + \newif\ifcabin@otf \ifxetex \cabin@otftrue @@ -13,6 +14,12 @@ \cabin@otffalse \fi\fi +\ifcabin@otf + \RequirePackage{fontspec} +\else + \RequirePackage{fontenc,fontaxes,mweights} +\fi + \newif\ifcabin@default \cabin@defaultfalse \newif\ifcabin@lining \cabin@liningfalse \newif\ifcabin@tabular \cabin@tabularfalse @@ -59,11 +66,7 @@ \fi \fi -\ifcabin@otf - \RequirePackage{fontspec} -\else - \RequirePackage{fontenc,fontaxes,mweights} -\fi + \ifcabin@otf \defaultfontfeatures{ @@ -112,8 +115,9 @@ \ifcabin@medium\def\mdseries@sf{mediumcondensed}\fi \mdseries } - \def\sfdefault{\cabinfamily} - \ifcabin@default\edef\familydefault{\sfdefault}\edef\seriesdefault{\mdseries@sf}\fi + \edef\sfdefault{\cabinfamily} + \ifcabin@default\edef\familydefault{\cabinfamily}\edef\seriesdefault{\mdseries@sf}\fi + \fi \ifcabin@otf |