summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/sourcesanspro/sourcesanspro.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-01-03 22:09:33 +0000
committerKarl Berry <karl@freefriends.org>2017-01-03 22:09:33 +0000
commitdebea0878f95c6361d603c0aa4ce6634a47a280b (patch)
tree01113f7845105bb36f6f2574862d8ca4dc48d237 /Master/texmf-dist/tex/latex/sourcesanspro/sourcesanspro.sty
parent9fa2e9799428a8b9965c631a2588a49f6685a5a9 (diff)
sourcesanspro (3jan17)
git-svn-id: svn://tug.org/texlive/trunk@42852 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/sourcesanspro/sourcesanspro.sty')
-rw-r--r--Master/texmf-dist/tex/latex/sourcesanspro/sourcesanspro.sty43
1 files changed, 23 insertions, 20 deletions
diff --git a/Master/texmf-dist/tex/latex/sourcesanspro/sourcesanspro.sty b/Master/texmf-dist/tex/latex/sourcesanspro/sourcesanspro.sty
index aa8ac942c9d..7f448313af8 100644
--- a/Master/texmf-dist/tex/latex/sourcesanspro/sourcesanspro.sty
+++ b/Master/texmf-dist/tex/latex/sourcesanspro/sourcesanspro.sty
@@ -8,7 +8,7 @@
% Licenced under the LPPL v1.3 or higher.
%
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{sourcesanspro}[2015/01/11 v2.5 Adobe's Source Sans Pro typeface]
+\ProvidesPackage{sourcesanspro}[2016/12/03 v2.6 Adobe's Source Sans Pro typeface]
\RequirePackage{ifxetex,ifluatex,xkeyval}
@@ -65,21 +65,24 @@
% Load OpenType files
\ifsourcesanspro@otf
\RequirePackage{fontspec}
-
+
+ % Create a fixed liningnums command:
+ \renewcommand*\liningnums[1]{{\addfontfeature{RawFeature=+lnum;-onum}#1}}
+
% Oldstyle/Lining
\ifsourcesanspro@oldstyle
\def\sourcesanspro@figurestyle{OldStyle}
\else
\def\sourcesanspro@figurestyle{}
\fi
-
+
% Tabular/Proportional
\ifsourcesanspro@tabular
\def\sourcesanspro@figurealign{Monospaced}
\else
\def\sourcesanspro@figurealign{Proportional}
\fi
-
+
% Black/Semibold/Bold
\ifsourcesanspro@black
\def\sourcesanspro@boldstyle{Black}
@@ -90,7 +93,7 @@
\def\sourcesanspro@boldstyle{Bold}
\fi
\fi
-
+
% Light/ExtraLight/Regular
\ifsourcesanspro@light
\def\sourcesanspro@regstyle{Light}
@@ -101,7 +104,7 @@
\def\sourcesanspro@regstyle{Regular}
\fi
\fi
-
+
% Shared features
\defaultfontfeatures{
Ligatures = TeX ,
@@ -114,20 +117,20 @@
\setsansfont
[ UprightFont = *-\sourcesanspro@regstyle ,
ItalicFont = *-\sourcesanspro@regstyle It ,
- BoldFont = *-\sourcesanspro@boldstyle ,
+ BoldFont = *-\sourcesanspro@boldstyle ,
BoldItalicFont = *-\sourcesanspro@boldstyle It]
{SourceSansPro}
\fi
-
+
% Font families
% Regular/Bold
\newfontfamily\sourcesanspro
[ UprightFont = *-Regular ,
ItalicFont = *-RegularIt ,
- BoldFont = *-Bold ,
+ BoldFont = *-Bold ,
BoldItalicFont = *-BoldIt ]
{SourceSansPro}
-
+
% Light/Semibold
\newfontfamily\sourcesansprolight
[ UprightFont = *-Light ,
@@ -135,7 +138,7 @@
BoldFont = *-Semibold ,
BoldItalicFont = *-SemiboldIt ]
{SourceSansPro}
-
+
% ExtraLight/Black
\newfontfamily\sourcesansproextreme
[ UprightFont = *-ExtraLight ,
@@ -143,16 +146,16 @@
BoldFont = *-Black ,
BoldItalicFont = *-BlackIt ]
{SourceSansPro}
-
+
% Lining figures
\newfontfamily\sourcesansprolf
[ Numbers = \sourcesanspro@figurealign ,
UprightFont = *-\sourcesanspro@regstyle ,
ItalicFont = *-\sourcesanspro@regstyle It ,
- BoldFont = *-\sourcesanspro@boldstyle ,
- BoldItalicFont = *-\sourcesanspro@boldstyle It]
+ BoldFont = *-\sourcesanspro@boldstyle ,
+ BoldItalicFont = *-\sourcesanspro@boldstyle It ]
{SourceSansPro}
-
+
% Dont keep all default font features
\defaultfontfeatures{}
@@ -167,14 +170,14 @@
\else
\def\sourcesanspro@figurestyle{LF}
\fi
-
+
% Tabular/Proportional
\ifsourcesanspro@tabular
\def\sourcesanspro@figurealign{T}
\else
\def\sourcesanspro@figurealign{}
\fi
-
+
% Black/Semibold/Bold
\ifsourcesanspro@black
\def\bfseries@sf{k}
@@ -185,7 +188,7 @@
\def\bfseries@sf{b}
\fi
\fi
-
+
% Light/ExtraLight/Regular
\ifsourcesanspro@light
\def\mdseries@sf{l}
@@ -201,10 +204,10 @@
\ifsourcesanspro@sfdefault
\edef\sfdefault{SourceSansPro-\sourcesanspro@figurealign\sourcesanspro@figurestyle}
\fi
-
+
% If source sans pro is the default font \oldstylenums needs a new definition.
- \let\nativeoldstylenums\oldstylenums
\ifsourcesanspro@default
+ \let\nativeoldstylenums\oldstylenums
\renewcommand*\oldstylenums[1]{%
\begingroup
\ifmmode