diff options
author | Karl Berry <karl@freefriends.org> | 2015-05-14 21:24:24 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-05-14 21:24:24 +0000 |
commit | f2b5da76078905e2a2d31d88ce2034cc55585bed (patch) | |
tree | e3b147252a7fecaff186e76313dc22ddab5b0a3f /Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro.sty | |
parent | 56a40e03d24cdd8135e17ab470ca7fc52f98efe9 (diff) |
sourcecodepro (14may15)
git-svn-id: svn://tug.org/texlive/trunk@37395 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro.sty | 56 |
1 files changed, 37 insertions, 19 deletions
diff --git a/Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro.sty b/Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro.sty index 07766762278..42fdaa92ada 100644 --- a/Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro.sty +++ b/Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro.sty @@ -8,7 +8,7 @@ % Licenced under the LPPL v1.3 or higher. % \NeedsTeXFormat{LaTeX2e}[1994/12/01] -\ProvidesPackage{sourcecodepro}[2014/07/28 v2.3 Adobe's Source Code Pro typeface] +\ProvidesPackage{sourcecodepro}[2015/01/11 v2.4 Adobe's Source Code Pro typeface] \RequirePackage{ifxetex,ifluatex,xkeyval} @@ -21,6 +21,7 @@ \newif\ifsourcecodepro@semibold \newif\ifsourcecodepro@light \newif\ifsourcecodepro@extralight +\newif\ifsourcecodepro@medium % Scaling command \newcommand*{\SourceCodePro@scale}{1} @@ -40,11 +41,12 @@ \DeclareOptionX{oldstyle} {\sourcecodepro@oldstyletrue} \DeclareOptionX{osf} {\sourcecodepro@oldstyletrue} \DeclareOptionX{black} {\sourcecodepro@blacktrue \sourcecodepro@semiboldfalse} -\DeclareOptionX{semibold} {\sourcecodepro@blackfalse\sourcecodepro@semiboldtrue} +\DeclareOptionX{semibold} {\sourcecodepro@blackfalse\sourcecodepro@semiboldtrue } \DeclareOptionX{bold} {\sourcecodepro@blackfalse\sourcecodepro@semiboldfalse} -\DeclareOptionX{light} {\sourcecodepro@lighttrue \sourcecodepro@extralightfalse} -\DeclareOptionX{extralight} {\sourcecodepro@lightfalse\sourcecodepro@extralighttrue} -\DeclareOptionX{regular} {\sourcecodepro@lightfalse\sourcecodepro@extralightfalse} +\DeclareOptionX{light} {\sourcecodepro@lighttrue \sourcecodepro@extralightfalse\sourcecodepro@mediumfalse} +\DeclareOptionX{extralight} {\sourcecodepro@lightfalse\sourcecodepro@extralighttrue \sourcecodepro@mediumfalse} +\DeclareOptionX{regular} {\sourcecodepro@lightfalse\sourcecodepro@extralightfalse\sourcecodepro@mediumfalse} +\DeclareOptionX{medium} {\sourcecodepro@lightfalse\sourcecodepro@extralightfalse\sourcecodepro@mediumtrue } \DeclareOptionX{scale} {\renewcommand*{\SourceCodePro@scale}{#1}} \DeclareOptionX{scaled} {\renewcommand*{\SourceCodePro@scale}{#1}} \DeclareOptionX{default} {\sourcecodepro@defaulttrue} @@ -81,14 +83,18 @@ \fi \fi - % Light/ExtraLight/Regular + % Light/ExtraLight/Regular/Medium \ifsourcecodepro@light \def\sourcecodepro@regstyle{Light} \else \ifsourcecodepro@extralight \def\sourcecodepro@regstyle{ExtraLight} \else - \def\sourcecodepro@regstyle{Regular} + \ifsourcecodepro@medium + \def\sourcecodepro@regstyle{Medium} + \else + \def\sourcecodepro@regstyle{Regular} + \fi \fi \fi @@ -103,9 +109,9 @@ \ifsourcecodepro@ttdefault \setmonofont [ UprightFont = *-\sourcecodepro@regstyle , - ItalicFont = *-\sourcecodepro@regstyle , + ItalicFont = *-\sourcecodepro@regstyle It , BoldFont = *-\sourcecodepro@boldstyle , - BoldItalicFont = *-\sourcecodepro@boldstyle ] + BoldItalicFont = *-\sourcecodepro@boldstyle It ] {SourceCodePro} \fi @@ -113,34 +119,42 @@ % Regular/Bold \newfontfamily\sourcecodepro [ UprightFont = *-Regular , - ItalicFont = *-Regular , + ItalicFont = *-RegularIt , BoldFont = *-Bold , - BoldItalicFont = *-Bold ] + BoldItalicFont = *-BoldIt ] + {SourceCodePro} + + % Medium/Bold + \newfontfamily\sourcecodepromedium + [ UprightFont = *-Medium , + ItalicFont = *-MediumIt , + BoldFont = *-Bold , + BoldItalicFont = *-BoldIt ] {SourceCodePro} % Light/Semibold \newfontfamily\sourcecodeprolight [ UprightFont = *-Light , - ItalicFont = *-Light , + ItalicFont = *-LightIt , BoldFont = *-Semibold , - BoldItalicFont = *-Semibold ] + BoldItalicFont = *-SemiboldIt ] {SourceCodePro} % ExtraLight/Black \newfontfamily\sourcecodeproextreme [ UprightFont = *-ExtraLight , - ItalicFont = *-ExtraLight , + ItalicFont = *-ExtraLightIt , BoldFont = *-Black , - BoldItalicFont = *-Black ] + BoldItalicFont = *-BlackIt ] {SourceCodePro} % Lining figures \newfontfamily\sourcecodeprolf [ Numbers = , UprightFont = *-\sourcecodepro@regstyle , - ItalicFont = *-\sourcecodepro@regstyle , + ItalicFont = *-\sourcecodepro@regstyle It , BoldFont = *-\sourcecodepro@boldstyle , - BoldItalicFont = *-\sourcecodepro@boldstyle ] + BoldItalicFont = *-\sourcecodepro@boldstyle It ] {SourceCodePro} % Dont keep all default font features @@ -169,14 +183,18 @@ \fi \fi - % Light/ExtraLight/Regular + % Light/ExtraLight/Regular/Medium \ifsourcecodepro@light \def\mdseries@tt{l} \else \ifsourcecodepro@extralight \def\mdseries@tt{el} \else - \def\mdseries@tt{m} + \ifsourcecodepro@medium + \def\mdseries@tt{mb} + \else + \def\mdseries@tt{m} + \fi \fi \fi |