texlive[57296] Master/texmf-dist: spectral (2jan21)
commits+karl at tug.org
commits+karl at tug.org
Sat Jan 2 23:15:24 CET 2021
Revision: 57296
http://tug.org/svn/texlive?view=revision&revision=57296
Author: karl
Date: 2021-01-02 23:15:23 +0100 (Sat, 02 Jan 2021)
Log Message:
-----------
spectral (2jan21)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/fonts/spectral/README
trunk/Master/texmf-dist/doc/fonts/spectral/spectral-samples.pdf
trunk/Master/texmf-dist/doc/fonts/spectral/spectral-samples.tex
trunk/Master/texmf-dist/tex/latex/spectral/spectral.sty
Modified: trunk/Master/texmf-dist/doc/fonts/spectral/README
===================================================================
--- trunk/Master/texmf-dist/doc/fonts/spectral/README 2021-01-02 22:14:12 UTC (rev 57295)
+++ trunk/Master/texmf-dist/doc/fonts/spectral/README 2021-01-02 22:15:23 UTC (rev 57296)
@@ -1,9 +1,9 @@
This is the README for the spectral package, version
-2020-08-21.
+2021-01-01.
This package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
support for the Spectral family of fonts, designed by
-Jean-Baptiste Lev\xE9e at the Production Type digital type
+Jean-Baptiste Levée at the Production Type digital type
design agency. Spectral is a new and versatile serif face
available in seven weights of roman and italic, with small
caps.
@@ -31,6 +31,7 @@
The defaults are oldstyle and proportional.
+el, extralight extralight weight
l, light light weight
m, medium medium weight
sb, semibold semibold weight
@@ -53,6 +54,10 @@
or lualatex users who prefer to use type1 fonts or to avoid
fontspec.
+Commands \spectralextralight, \spectrallight, \spectralmedium,
+\spectralsemibold and \spectralextrabold allow for local
+use of those series.
+
Commands \oldstylenums{...} and \liningnums{...} are defined
to allow for local use of old-style figures or lining
figures, respectively. Similarly, \tabularnums{...} and
Modified: trunk/Master/texmf-dist/doc/fonts/spectral/spectral-samples.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/fonts/spectral/spectral-samples.tex
===================================================================
--- trunk/Master/texmf-dist/doc/fonts/spectral/spectral-samples.tex 2021-01-02 22:14:12 UTC (rev 57295)
+++ trunk/Master/texmf-dist/doc/fonts/spectral/spectral-samples.tex 2021-01-02 22:15:23 UTC (rev 57296)
@@ -1,6 +1,7 @@
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[sb]{spectral}
+\usepackage{microtype}
\usepackage{lipsum}
\begin{document}
@@ -25,6 +26,21 @@
\subsection*{Bold Italic}
\textbf{\emph{\lipsum[4]}}
+\subsection*{Extra Light}
+{\spectralextralight\lipsum[5]}
+
+\subsection*{Light}
+{\spectrallight\lipsum[6]}
+
+\subsection*{Medium}
+{\spectralmedium\lipsum[7]}
+
+\subsection*{SemiBold}
+{\spectralsemibold\lipsum[8]}
+
+\subsection*{ExtraBold}
+{\spectralextrabold\lipsum[9]}
+
\subsection*{Default Numbers}
1234567890
Modified: trunk/Master/texmf-dist/tex/latex/spectral/spectral.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/spectral/spectral.sty 2021-01-02 22:14:12 UTC (rev 57295)
+++ trunk/Master/texmf-dist/tex/latex/spectral/spectral.sty 2021-01-02 22:15:23 UTC (rev 57296)
@@ -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 at medium
\def\mdseries at rm{medium}
\else\ifspectral at light
- \def\mdseries at rm{light}
+ \def\mdseries at rm{l}
\else\ifspectral at extralight
- \def\mdseries at rm{extralight}
+ \def\mdseries at rm{el}
\else
\def\mdseries at rm{m}
\fi\fi\fi
@@ -132,6 +132,42 @@
BoldItalicFont = *-\spectral at boldstyle Italic ,
]
{Spectral}
+ \newfontfamily\spectralextralight
+ [ Numbers = {\spectral at figurealign,\spectral at figurestyle},
+ UprightFont = *-ExtraLight ,
+ ItalicFont = *-ExtraLightItalic ,
+ BoldFont = *-\spectral at boldstyle ,
+ BoldItalicFont = *-\spectral at boldstyle Italic ,
+ ]
+ {Spectral}
+ \newfontfamily\spectrallight
+ [ Numbers = {\spectral at figurealign,\spectral at figurestyle},
+ UprightFont = *-Light ,
+ ItalicFont = *-LightItalic ,
+ BoldFont = *-\spectral at boldstyle ,
+ BoldItalicFont = *-\spectral at boldstyle Italic ,
+ ]
+ {Spectral}
+ \newfontfamily\spectralmedium
+ [ Numbers = {\spectral at figurealign,\spectral at figurestyle},
+ UprightFont = *-Medium ,
+ ItalicFont = *-MediumItalic ,
+ BoldFont = *-\spectral at boldstyle ,
+ BoldItalicFont = *-\spectral at boldstyle Italic ,
+ ]
+ {Spectral}
+ \newfontfamily\spectralsemibold
+ [ Numbers = {\spectral at figurealign,\spectral at figurestyle},
+ UprightFont = *-SemiBold ,
+ ItalicFont = *-SemiBoldItalic ,
+ ]
+ {Spectral}
+ \newfontfamily\spectralextrabold
+ [ Numbers = {\spectral at figurealign,\spectral at 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 at naming@exception{shape}{{it}{sw}}{sw}
\fi
+ \def\spectralextralight{\fontfamily{\spectral at family}\fontseries{el}\selectfont}
+ \def\spectrallight{\fontfamily{\spectral at family}\fontseries{l}\selectfont}
+ \def\spectralmedium{\fontfamily{\spectral at family}\fontseries{medium}\selectfont}
+ \def\spectralsemibold{\fontfamily{\spectral at family}\fontseries{sb}\selectfont}
+ \def\spectralextrabold{\fontfamily{\spectral at family}\fontseries{eb}\selectfont}
\DeclareTextFontCommand{\oldstylenums}{\fontfamily{Spectral-\spectral at figurealign OsF}\selectfont}
\DeclareTextFontCommand{\liningnums}{\fontfamily{Spectral-\spectral at figurealign LF}\selectfont}
More information about the tex-live-commits
mailing list.