diff options
author | Karl Berry <karl@freefriends.org> | 2021-01-02 22:15:23 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-01-02 22:15:23 +0000 |
commit | 8a40de6954483011aa2b9fe69b46b306540302ac (patch) | |
tree | e1009e7e9f74df03b37e5e0e0e160b35d9fcaa3d /Master/texmf-dist/tex/latex | |
parent | 29a4a89759ca4894080bd5d0762b7d4b8aa5dbed (diff) |
spectral (2jan21)
git-svn-id: svn://tug.org/texlive/trunk@57296 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/spectral/spectral.sty | 47 |
1 files changed, 44 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/spectral/spectral.sty b/Master/texmf-dist/tex/latex/spectral/spectral.sty index e573534f778..8b4e28378e5 100644 --- a/Master/texmf-dist/tex/latex/spectral/spectral.sty +++ b/Master/texmf-dist/tex/latex/spectral/spectral.sty @@ -1,6 +1,6 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{spectral} - [2020/08/21 (Bob Tennent and autoinst) Style file for Spectral fonts.] + [2021/01/01 (Bob Tennent and autoinst) Style file for Spectral fonts.] \RequirePackage{ifxetex,ifluatex,xkeyval,textcomp} @@ -92,9 +92,9 @@ \ifspectral@medium \def\mdseries@rm{medium} \else\ifspectral@light - \def\mdseries@rm{light} + \def\mdseries@rm{l} \else\ifspectral@extralight - \def\mdseries@rm{extralight} + \def\mdseries@rm{el} \else \def\mdseries@rm{m} \fi\fi\fi @@ -132,6 +132,42 @@ BoldItalicFont = *-\spectral@boldstyle Italic , ] {Spectral} + \newfontfamily\spectralextralight + [ Numbers = {\spectral@figurealign,\spectral@figurestyle}, + UprightFont = *-ExtraLight , + ItalicFont = *-ExtraLightItalic , + BoldFont = *-\spectral@boldstyle , + BoldItalicFont = *-\spectral@boldstyle Italic , + ] + {Spectral} + \newfontfamily\spectrallight + [ Numbers = {\spectral@figurealign,\spectral@figurestyle}, + UprightFont = *-Light , + ItalicFont = *-LightItalic , + BoldFont = *-\spectral@boldstyle , + BoldItalicFont = *-\spectral@boldstyle Italic , + ] + {Spectral} + \newfontfamily\spectralmedium + [ Numbers = {\spectral@figurealign,\spectral@figurestyle}, + UprightFont = *-Medium , + ItalicFont = *-MediumItalic , + BoldFont = *-\spectral@boldstyle , + BoldItalicFont = *-\spectral@boldstyle Italic , + ] + {Spectral} + \newfontfamily\spectralsemibold + [ Numbers = {\spectral@figurealign,\spectral@figurestyle}, + UprightFont = *-SemiBold , + ItalicFont = *-SemiBoldItalic , + ] + {Spectral} + \newfontfamily\spectralextrabold + [ Numbers = {\spectral@figurealign,\spectral@figurestyle}, + UprightFont = *-ExtraBold , + ItalicFont = *-ExtraBoldItalic , + ] + {Spectral} \providecommand\sufigures{\addfontfeatures{VerticalPosition=Superior}} \DeclareTextFontCommand{\oldstylenums}{\addfontfeatures{Numbers=OldStyle}} \DeclareTextFontCommand{\liningnums}{\addfontfeatures{Numbers=Lining}} @@ -152,6 +188,11 @@ \fa@naming@exception{shape}{{it}{sw}}{sw} \fi + \def\spectralextralight{\fontfamily{\spectral@family}\fontseries{el}\selectfont} + \def\spectrallight{\fontfamily{\spectral@family}\fontseries{l}\selectfont} + \def\spectralmedium{\fontfamily{\spectral@family}\fontseries{medium}\selectfont} + \def\spectralsemibold{\fontfamily{\spectral@family}\fontseries{sb}\selectfont} + \def\spectralextrabold{\fontfamily{\spectral@family}\fontseries{eb}\selectfont} \DeclareTextFontCommand{\oldstylenums}{\fontfamily{Spectral-\spectral@figurealign OsF}\selectfont} \DeclareTextFontCommand{\liningnums}{\fontfamily{Spectral-\spectral@figurealign LF}\selectfont} |