summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-01-02 22:15:23 +0000
committerKarl Berry <karl@freefriends.org>2021-01-02 22:15:23 +0000
commit8a40de6954483011aa2b9fe69b46b306540302ac (patch)
treee1009e7e9f74df03b37e5e0e0e160b35d9fcaa3d
parent29a4a89759ca4894080bd5d0762b7d4b8aa5dbed (diff)
spectral (2jan21)
git-svn-id: svn://tug.org/texlive/trunk@57296 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/fonts/spectral/README9
-rw-r--r--Master/texmf-dist/doc/fonts/spectral/spectral-samples.pdfbin33991 -> 78482 bytes
-rw-r--r--Master/texmf-dist/doc/fonts/spectral/spectral-samples.tex16
-rw-r--r--Master/texmf-dist/tex/latex/spectral/spectral.sty47
4 files changed, 67 insertions, 5 deletions
diff --git a/Master/texmf-dist/doc/fonts/spectral/README b/Master/texmf-dist/doc/fonts/spectral/README
index bb7e74d4542..f7609b9b01c 100644
--- a/Master/texmf-dist/doc/fonts/spectral/README
+++ b/Master/texmf-dist/doc/fonts/spectral/README
@@ -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ée 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 @@ tabular,t fixed-width figures
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 @@ adjust fontsizes. The type1 option may be used by xelatex
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
diff --git a/Master/texmf-dist/doc/fonts/spectral/spectral-samples.pdf b/Master/texmf-dist/doc/fonts/spectral/spectral-samples.pdf
index c59721b0209..1ce614d8601 100644
--- a/Master/texmf-dist/doc/fonts/spectral/spectral-samples.pdf
+++ b/Master/texmf-dist/doc/fonts/spectral/spectral-samples.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/fonts/spectral/spectral-samples.tex b/Master/texmf-dist/doc/fonts/spectral/spectral-samples.tex
index 6f1b483dce3..c3a0a39fec7 100644
--- a/Master/texmf-dist/doc/fonts/spectral/spectral-samples.tex
+++ b/Master/texmf-dist/doc/fonts/spectral/spectral-samples.tex
@@ -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
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}