summaryrefslogtreecommitdiff
path: root/fonts/cormorantgaramond/latex/CormorantGaramond.sty
diff options
context:
space:
mode:
Diffstat (limited to 'fonts/cormorantgaramond/latex/CormorantGaramond.sty')
-rw-r--r--fonts/cormorantgaramond/latex/CormorantGaramond.sty42
1 files changed, 5 insertions, 37 deletions
diff --git a/fonts/cormorantgaramond/latex/CormorantGaramond.sty b/fonts/cormorantgaramond/latex/CormorantGaramond.sty
index 40e40806df..d9f58b1672 100644
--- a/fonts/cormorantgaramond/latex/CormorantGaramond.sty
+++ b/fonts/cormorantgaramond/latex/CormorantGaramond.sty
@@ -1,6 +1,6 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{CormorantGaramond}
- [2020/01/06 (Bob Tennent and autoinst) Style file for Cormorant Garamond fonts.]
+ [2020/04/12 (Bob Tennent and autoinst) Style file for Cormorant Garamond fonts.]
\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp}
@@ -110,42 +110,10 @@
{CormorantGaramond}
\providecommand\sufigures{\addfontfeatures{VerticalPosition=Superior}}
\providecommand\infigures{\addfontfeatures{VerticalPosition=ScientificInferior}}
- \newfontfamily\cormorantgaramondOsF
- [ Numbers = {\cormorantgaramond@figurealign,OldStyle},
- UprightFont = *-\cormorantgaramond@regstyle ,
- ItalicFont = *-\ifx\cormorantgaramond@regstyle\cormorantgaramond@regular Italic\else\cormorantgaramond@regstyle Italic\fi ,
- BoldFont = *-\cormorantgaramond@boldstyle ,
- BoldItalicFont = *-\cormorantgaramond@boldstyle Italic ,
- ]
- {CormorantGaramond}
- \newfontfamily\cormorantgaramondLF
- [ Numbers = {\cormorantgaramond@figurealign,Lining},
- UprightFont = *-\cormorantgaramond@regstyle ,
- ItalicFont = *-\ifx\cormorantgaramond@regstyle\cormorantgaramond@regular Italic\else\cormorantgaramond@regstyle Italic\fi ,
- BoldFont = *-\cormorantgaramond@boldstyle ,
- BoldItalicFont = *-\cormorantgaramond@boldstyle Italic ,
- ]
- {CormorantGaramond}
- \newfontfamily\cormorantgaramondtabular
- [ Numbers = {Monospaced,\cormorantgaramond@figurestyle},
- UprightFont = *-\cormorantgaramond@regstyle ,
- ItalicFont = *-\ifx\cormorantgaramond@regstyle\cormorantgaramond@regular Italic\else\cormorantgaramond@regstyle Italic\fi ,
- BoldFont = *-\cormorantgaramond@boldstyle ,
- BoldItalicFont = *-\cormorantgaramond@boldstyle Italic ,
- ]
- {CormorantGaramond}
- \newfontfamily\cormorantgaramondproportional
- [ Numbers = {\cormorantgaramond@figurestyle},
- UprightFont = *-\cormorantgaramond@regstyle ,
- ItalicFont = *-\ifx\cormorantgaramond@regstyle\cormorantgaramond@regular Italic\else\cormorantgaramond@regstyle Italic\fi ,
- BoldFont = *-\cormorantgaramond@boldstyle ,
- BoldItalicFont = *-\cormorantgaramond@boldstyle Italic ,
- ]
- {CormorantGaramond}
- \DeclareTextFontCommand{\oldstylenums}{\cormorantgaramondOsF}
- \DeclareTextFontCommand{\liningnums}{\cormorantgaramondLF}
- \DeclareTextFontCommand{\tabularnums}{\cormorantgaramondtabular}
- \DeclareTextFontCommand{\proportionalnums}{\cormorantgaramondproportional}
+ \DeclareTextFontCommand{\oldstylenums}{\addfontfeatures{Numbers=OldStyle}}
+ \DeclareTextFontCommand{\liningnums}{\addfontfeatures{Numbers=Lining}}
+ \DeclareTextFontCommand{\tabularnums}{\addfontfeatures{Numbers=Tabular}}
+ \DeclareTextFontCommand{\proportionalnums}{\addfontfeatures{Numbers=Lining}} % pnum not supported
\else % type1