diff options
author | Karl Berry <karl@freefriends.org> | 2013-07-22 22:05:12 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-07-22 22:05:12 +0000 |
commit | d596187ceaaa238c02ae2006ee9be30e61772253 (patch) | |
tree | b6f14bf16fae1c3e0d2582345a5a382cceb9ebc1 /Master/texmf-dist/tex/latex | |
parent | d8c45c205a8c3d026e4db8c8af520b856e430463 (diff) |
cabin (22jul13)
git-svn-id: svn://tug.org/texlive/trunk@31265 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/cabin/cabin.sty | 48 |
1 files changed, 14 insertions, 34 deletions
diff --git a/Master/texmf-dist/tex/latex/cabin/cabin.sty b/Master/texmf-dist/tex/latex/cabin/cabin.sty index 20b6b23767d..33f88aca81c 100644 --- a/Master/texmf-dist/tex/latex/cabin/cabin.sty +++ b/Master/texmf-dist/tex/latex/cabin/cabin.sty @@ -1,6 +1,6 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{cabin} - [2013/07/16 (Bob Tennent) Supports Cabin fonts for all LaTeX engines.] + [2013/07/20 (Bob Tennent) Supports Cabin fonts for all LaTeX engines.] \RequirePackage{ifxetex,ifluatex,xkeyval,textcomp} @@ -37,35 +37,23 @@ \ProcessOptionsX\relax \ifcabin@otf - \ifcabin@semibold - \edef\cabin@boldstyle{SemiBold} - \else - \edef\cabin@boldstyle{Bold} - \fi - \ifcabin@medium - \edef\cabin@regstyle{Medium} - \else - \edef\cabin@regstyle{Regular} - \fi + \def\cabin@boldstyle{Bold} + \ifcabin@semibold\def\cabin@boldstyle{SemiBold}\fi + \def\cabin@regstyle{Regular} + \ifcabin@medium\def\cabin@regstyle{Medium}\fi \else % type1 - \ifcabin@semibold - \edef\cabin@boldstyle{sb} - \else - \edef\cabin@boldstyle{b} - \fi - \ifcabin@medium - \edef\cabin@regstyle{mb} - \else - \edef\cabin@regstyle{m} - \fi + \def\bfseries@sf{b} + \ifcabin@semibold\def\bfseries@sf{sb}\fi + \def\mdseries@sf{m} + \ifcabin@medium\def\mdseries@sf{mb}\fi \fi \ifcabin@otf \RequirePackage{fontspec} \else - \RequirePackage{fontenc,fontaxes} + \RequirePackage{fontenc,fontaxes,mweights} \fi \ifcabin@otf @@ -107,23 +95,15 @@ \else % type1 \def\cabinfamily{Cabin-TLF} \def\cabincondensedfamily{CabinCondensed-TLF} - \ifcabin@condensed - \renewcommand*\sfdefault{\cabincondensedfamily} - \ifcabin@default\renewcommand*\familydefault{\cabincondensedfamily}\fi - \else - \renewcommand*\sfdefault{\cabinfamily} - \let\mdseries@cabin\mdseries - \renewcommand*\mdseries{\ifx\f@family\cabinfamily\fontseries\cabin@regstyle\selectfont\else\mdseries@cabin\fi} - \let\bfseries@cabin\bfseries - \renewcommand*\bfseries{\ifx\f@family\cabinfamily\fontseries\cabin@boldstyle\selectfont\else\bfseries@cabin\fi} - \ifcabin@default\renewcommand*\familydefault{\cabinfamily}\fi - \fi \newcommand*\cabin{\fontfamily{\cabinfamily}\selectfont} \newcommand*\cabincondensed{\fontfamily{\cabincondensedfamily}\selectfont} + \def\sfdefault{\cabinfamily} + \ifcabin@condensed\def\sfdefault{\cabincondensedfamily}\fi + \ifcabin@default\edef\familydefault{\sfdefault}\edef\seriesdefault{\mdseries@sf}\fi \fi +\ifcabin@otf % turn off defaults in case other fonts are selected: -\ifcabin@otf \defaultfontfeatures{} \fi |