From 9a3b24b6c40172a8e489ab6d7409303db574c826 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 18 Jan 2013 23:26:19 +0000 Subject: sourcecodepro (18jan13) git-svn-id: svn://tug.org/texlive/trunk@28866 c570f23f-e606-0410-a88d-b1316a301751 --- .../latex/sourcecodepro/LY1SourceCodePro-OsF.fd | 12 +- .../latex/sourcecodepro/LY1SourceCodePro-Sup.fd | 38 ---- .../latex/sourcecodepro/LY1SourceCodePro-TLF.fd | 32 +--- .../latex/sourcecodepro/LY1SourceCodePro-TOsF.fd | 12 +- .../latex/sourcecodepro/OT1SourceCodePro-OsF.fd | 12 +- .../latex/sourcecodepro/OT1SourceCodePro-Sup.fd | 38 ---- .../latex/sourcecodepro/OT1SourceCodePro-TLF.fd | 32 +--- .../latex/sourcecodepro/OT1SourceCodePro-TOsF.fd | 12 +- .../tex/latex/sourcecodepro/T1SourceCodePro-OsF.fd | 12 +- .../tex/latex/sourcecodepro/T1SourceCodePro-Sup.fd | 38 ---- .../tex/latex/sourcecodepro/T1SourceCodePro-TLF.fd | 32 +--- .../latex/sourcecodepro/T1SourceCodePro-TOsF.fd | 12 +- .../latex/sourcecodepro/TS1SourceCodePro-OsF.fd | 12 +- .../latex/sourcecodepro/TS1SourceCodePro-TLF.fd | 12 +- .../latex/sourcecodepro/TS1SourceCodePro-TOsF.fd | 12 +- .../tex/latex/sourcecodepro/sourcecodepro-otf.sty | 98 ---------- .../sourcecodepro/sourcecodepro-type1-autoinst.sty | 20 +- .../latex/sourcecodepro/sourcecodepro-type1.sty | 73 -------- .../tex/latex/sourcecodepro/sourcecodepro.sty | 206 +++++++++++++++++++-- 19 files changed, 306 insertions(+), 409 deletions(-) delete mode 100644 Master/texmf-dist/tex/latex/sourcecodepro/LY1SourceCodePro-Sup.fd delete mode 100644 Master/texmf-dist/tex/latex/sourcecodepro/OT1SourceCodePro-Sup.fd delete mode 100644 Master/texmf-dist/tex/latex/sourcecodepro/T1SourceCodePro-Sup.fd delete mode 100644 Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro-otf.sty delete mode 100644 Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro-type1.sty (limited to 'Master/texmf-dist/tex/latex/sourcecodepro') diff --git a/Master/texmf-dist/tex/latex/sourcecodepro/LY1SourceCodePro-OsF.fd b/Master/texmf-dist/tex/latex/sourcecodepro/LY1SourceCodePro-OsF.fd index 451fc7608b6..647857157c4 100644 --- a/Master/texmf-dist/tex/latex/sourcecodepro/LY1SourceCodePro-OsF.fd +++ b/Master/texmf-dist/tex/latex/sourcecodepro/LY1SourceCodePro-OsF.fd @@ -1,7 +1,7 @@ -%% Generated by autoinst on 2012/11/04 +%% Generated by autoinst on 2013/01/17 %% \ProvidesFile{LY1SourceCodePro-OsF.fd} - [2012/11/04 (autoinst) Font definitions for LY1/SourceCodePro-OsF.] + [2013/01/17 (autoinst) Font definitions for LY1/SourceCodePro-OsF.] \expandafter\ifx\csname SourceCodePro@scale\endcsname\relax \let\SourceCodePro@@scale\@empty @@ -27,6 +27,10 @@ <-> \SourceCodePro@@scale SourceCodePro-Semibold-osf-ly1 }{} +\DeclareFontShape{LY1}{SourceCodePro-OsF}{mb}{n}{ + <-> \SourceCodePro@@scale SourceCodePro-Medium-osf-ly1 +}{} + \DeclareFontShape{LY1}{SourceCodePro-OsF}{m}{n}{ <-> \SourceCodePro@@scale SourceCodePro-Regular-osf-ly1 }{} @@ -35,4 +39,8 @@ <-> \SourceCodePro@@scale SourceCodePro-ExtraLight-osf-ly1 }{} +\DeclareFontShape{LY1}{SourceCodePro-OsF}{bx}{n}{ + <-> ssub * SourceCodePro-OsF/b/n +}{} + \endinput diff --git a/Master/texmf-dist/tex/latex/sourcecodepro/LY1SourceCodePro-Sup.fd b/Master/texmf-dist/tex/latex/sourcecodepro/LY1SourceCodePro-Sup.fd deleted file mode 100644 index fbc8ae05e21..00000000000 --- a/Master/texmf-dist/tex/latex/sourcecodepro/LY1SourceCodePro-Sup.fd +++ /dev/null @@ -1,38 +0,0 @@ -%% Generated by autoinst on 2012/11/04 -%% -\ProvidesFile{LY1SourceCodePro-Sup.fd} - [2012/11/04 (autoinst) Font definitions for LY1/SourceCodePro-Sup.] - -\expandafter\ifx\csname SourceCodePro@scale\endcsname\relax - \let\SourceCodePro@@scale\@empty -\else - \edef\SourceCodePro@@scale{s*[\csname SourceCodePro@scale\endcsname]}% -\fi - -\DeclareFontFamily{LY1}{SourceCodePro-Sup}{} - -\DeclareFontShape{LY1}{SourceCodePro-Sup}{l}{n}{ - <-> \SourceCodePro@@scale SourceCodePro-Light-sup-ly1 -}{} - -\DeclareFontShape{LY1}{SourceCodePro-Sup}{k}{n}{ - <-> \SourceCodePro@@scale SourceCodePro-Black-sup-ly1 -}{} - -\DeclareFontShape{LY1}{SourceCodePro-Sup}{b}{n}{ - <-> \SourceCodePro@@scale SourceCodePro-Bold-sup-ly1 -}{} - -\DeclareFontShape{LY1}{SourceCodePro-Sup}{sb}{n}{ - <-> \SourceCodePro@@scale SourceCodePro-Semibold-sup-ly1 -}{} - -\DeclareFontShape{LY1}{SourceCodePro-Sup}{m}{n}{ - <-> \SourceCodePro@@scale SourceCodePro-Regular-sup-ly1 -}{} - -\DeclareFontShape{LY1}{SourceCodePro-Sup}{el}{n}{ - <-> \SourceCodePro@@scale SourceCodePro-ExtraLight-sup-ly1 -}{} - -\endinput diff --git a/Master/texmf-dist/tex/latex/sourcecodepro/LY1SourceCodePro-TLF.fd b/Master/texmf-dist/tex/latex/sourcecodepro/LY1SourceCodePro-TLF.fd index e48f6d05449..9237ec10868 100644 --- a/Master/texmf-dist/tex/latex/sourcecodepro/LY1SourceCodePro-TLF.fd +++ b/Master/texmf-dist/tex/latex/sourcecodepro/LY1SourceCodePro-TLF.fd @@ -1,7 +1,7 @@ -%% Generated by autoinst on 2012/11/04 +%% Generated by autoinst on 2013/01/17 %% \ProvidesFile{LY1SourceCodePro-TLF.fd} - [2012/11/04 (autoinst) Font definitions for LY1/SourceCodePro-TLF.] + [2013/01/17 (autoinst) Font definitions for LY1/SourceCodePro-TLF.] \expandafter\ifx\csname SourceCodePro@scale\endcsname\relax \let\SourceCodePro@@scale\@empty @@ -11,52 +11,36 @@ \DeclareFontFamily{LY1}{SourceCodePro-TLF}{} -\DeclareFontShape{LY1}{SourceCodePro-TLF}{l}{tl}{ - <-> \SourceCodePro@@scale SourceCodePro-Light-tlf-titling-ly1 -}{} - \DeclareFontShape{LY1}{SourceCodePro-TLF}{l}{n}{ <-> \SourceCodePro@@scale SourceCodePro-Light-tlf-ly1 }{} -\DeclareFontShape{LY1}{SourceCodePro-TLF}{k}{tl}{ - <-> \SourceCodePro@@scale SourceCodePro-Black-tlf-titling-ly1 -}{} - \DeclareFontShape{LY1}{SourceCodePro-TLF}{k}{n}{ <-> \SourceCodePro@@scale SourceCodePro-Black-tlf-ly1 }{} -\DeclareFontShape{LY1}{SourceCodePro-TLF}{b}{tl}{ - <-> \SourceCodePro@@scale SourceCodePro-Bold-tlf-titling-ly1 -}{} - \DeclareFontShape{LY1}{SourceCodePro-TLF}{b}{n}{ <-> \SourceCodePro@@scale SourceCodePro-Bold-tlf-ly1 }{} -\DeclareFontShape{LY1}{SourceCodePro-TLF}{sb}{tl}{ - <-> \SourceCodePro@@scale SourceCodePro-Semibold-tlf-titling-ly1 -}{} - \DeclareFontShape{LY1}{SourceCodePro-TLF}{sb}{n}{ <-> \SourceCodePro@@scale SourceCodePro-Semibold-tlf-ly1 }{} -\DeclareFontShape{LY1}{SourceCodePro-TLF}{m}{tl}{ - <-> \SourceCodePro@@scale SourceCodePro-Regular-tlf-titling-ly1 +\DeclareFontShape{LY1}{SourceCodePro-TLF}{mb}{n}{ + <-> \SourceCodePro@@scale SourceCodePro-Medium-tlf-ly1 }{} \DeclareFontShape{LY1}{SourceCodePro-TLF}{m}{n}{ <-> \SourceCodePro@@scale SourceCodePro-Regular-tlf-ly1 }{} -\DeclareFontShape{LY1}{SourceCodePro-TLF}{el}{tl}{ - <-> \SourceCodePro@@scale SourceCodePro-ExtraLight-tlf-titling-ly1 -}{} - \DeclareFontShape{LY1}{SourceCodePro-TLF}{el}{n}{ <-> \SourceCodePro@@scale SourceCodePro-ExtraLight-tlf-ly1 }{} +\DeclareFontShape{LY1}{SourceCodePro-TLF}{bx}{n}{ + <-> ssub * SourceCodePro-TLF/b/n +}{} + \endinput diff --git a/Master/texmf-dist/tex/latex/sourcecodepro/LY1SourceCodePro-TOsF.fd b/Master/texmf-dist/tex/latex/sourcecodepro/LY1SourceCodePro-TOsF.fd index 2dab8c9d71a..f43de51ab27 100644 --- a/Master/texmf-dist/tex/latex/sourcecodepro/LY1SourceCodePro-TOsF.fd +++ b/Master/texmf-dist/tex/latex/sourcecodepro/LY1SourceCodePro-TOsF.fd @@ -1,7 +1,7 @@ -%% Generated by autoinst on 2012/11/04 +%% Generated by autoinst on 2013/01/17 %% \ProvidesFile{LY1SourceCodePro-TOsF.fd} - [2012/11/04 (autoinst) Font definitions for LY1/SourceCodePro-TOsF.] + [2013/01/17 (autoinst) Font definitions for LY1/SourceCodePro-TOsF.] \expandafter\ifx\csname SourceCodePro@scale\endcsname\relax \let\SourceCodePro@@scale\@empty @@ -27,6 +27,10 @@ <-> \SourceCodePro@@scale SourceCodePro-Semibold-tosf-ly1 }{} +\DeclareFontShape{LY1}{SourceCodePro-TOsF}{mb}{n}{ + <-> \SourceCodePro@@scale SourceCodePro-Medium-tosf-ly1 +}{} + \DeclareFontShape{LY1}{SourceCodePro-TOsF}{m}{n}{ <-> \SourceCodePro@@scale SourceCodePro-Regular-tosf-ly1 }{} @@ -35,4 +39,8 @@ <-> \SourceCodePro@@scale SourceCodePro-ExtraLight-tosf-ly1 }{} +\DeclareFontShape{LY1}{SourceCodePro-TOsF}{bx}{n}{ + <-> ssub * SourceCodePro-TOsF/b/n +}{} + \endinput diff --git a/Master/texmf-dist/tex/latex/sourcecodepro/OT1SourceCodePro-OsF.fd b/Master/texmf-dist/tex/latex/sourcecodepro/OT1SourceCodePro-OsF.fd index 7af2f979298..4750f9d437b 100644 --- a/Master/texmf-dist/tex/latex/sourcecodepro/OT1SourceCodePro-OsF.fd +++ b/Master/texmf-dist/tex/latex/sourcecodepro/OT1SourceCodePro-OsF.fd @@ -1,7 +1,7 @@ -%% Generated by autoinst on 2012/11/04 +%% Generated by autoinst on 2013/01/17 %% \ProvidesFile{OT1SourceCodePro-OsF.fd} - [2012/11/04 (autoinst) Font definitions for OT1/SourceCodePro-OsF.] + [2013/01/17 (autoinst) Font definitions for OT1/SourceCodePro-OsF.] \expandafter\ifx\csname SourceCodePro@scale\endcsname\relax \let\SourceCodePro@@scale\@empty @@ -27,6 +27,10 @@ <-> \SourceCodePro@@scale SourceCodePro-Semibold-osf-ot1 }{} +\DeclareFontShape{OT1}{SourceCodePro-OsF}{mb}{n}{ + <-> \SourceCodePro@@scale SourceCodePro-Medium-osf-ot1 +}{} + \DeclareFontShape{OT1}{SourceCodePro-OsF}{m}{n}{ <-> \SourceCodePro@@scale SourceCodePro-Regular-osf-ot1 }{} @@ -35,4 +39,8 @@ <-> \SourceCodePro@@scale SourceCodePro-ExtraLight-osf-ot1 }{} +\DeclareFontShape{OT1}{SourceCodePro-OsF}{bx}{n}{ + <-> ssub * SourceCodePro-OsF/b/n +}{} + \endinput diff --git a/Master/texmf-dist/tex/latex/sourcecodepro/OT1SourceCodePro-Sup.fd b/Master/texmf-dist/tex/latex/sourcecodepro/OT1SourceCodePro-Sup.fd deleted file mode 100644 index 081a3ebe7ea..00000000000 --- a/Master/texmf-dist/tex/latex/sourcecodepro/OT1SourceCodePro-Sup.fd +++ /dev/null @@ -1,38 +0,0 @@ -%% Generated by autoinst on 2012/11/04 -%% -\ProvidesFile{OT1SourceCodePro-Sup.fd} - [2012/11/04 (autoinst) Font definitions for OT1/SourceCodePro-Sup.] - -\expandafter\ifx\csname SourceCodePro@scale\endcsname\relax - \let\SourceCodePro@@scale\@empty -\else - \edef\SourceCodePro@@scale{s*[\csname SourceCodePro@scale\endcsname]}% -\fi - -\DeclareFontFamily{OT1}{SourceCodePro-Sup}{} - -\DeclareFontShape{OT1}{SourceCodePro-Sup}{l}{n}{ - <-> \SourceCodePro@@scale SourceCodePro-Light-sup-ot1 -}{} - -\DeclareFontShape{OT1}{SourceCodePro-Sup}{k}{n}{ - <-> \SourceCodePro@@scale SourceCodePro-Black-sup-ot1 -}{} - -\DeclareFontShape{OT1}{SourceCodePro-Sup}{b}{n}{ - <-> \SourceCodePro@@scale SourceCodePro-Bold-sup-ot1 -}{} - -\DeclareFontShape{OT1}{SourceCodePro-Sup}{sb}{n}{ - <-> \SourceCodePro@@scale SourceCodePro-Semibold-sup-ot1 -}{} - -\DeclareFontShape{OT1}{SourceCodePro-Sup}{m}{n}{ - <-> \SourceCodePro@@scale SourceCodePro-Regular-sup-ot1 -}{} - -\DeclareFontShape{OT1}{SourceCodePro-Sup}{el}{n}{ - <-> \SourceCodePro@@scale SourceCodePro-ExtraLight-sup-ot1 -}{} - -\endinput diff --git a/Master/texmf-dist/tex/latex/sourcecodepro/OT1SourceCodePro-TLF.fd b/Master/texmf-dist/tex/latex/sourcecodepro/OT1SourceCodePro-TLF.fd index ff3713ab2b4..6f3d8c223fe 100644 --- a/Master/texmf-dist/tex/latex/sourcecodepro/OT1SourceCodePro-TLF.fd +++ b/Master/texmf-dist/tex/latex/sourcecodepro/OT1SourceCodePro-TLF.fd @@ -1,7 +1,7 @@ -%% Generated by autoinst on 2012/11/04 +%% Generated by autoinst on 2013/01/17 %% \ProvidesFile{OT1SourceCodePro-TLF.fd} - [2012/11/04 (autoinst) Font definitions for OT1/SourceCodePro-TLF.] + [2013/01/17 (autoinst) Font definitions for OT1/SourceCodePro-TLF.] \expandafter\ifx\csname SourceCodePro@scale\endcsname\relax \let\SourceCodePro@@scale\@empty @@ -11,52 +11,36 @@ \DeclareFontFamily{OT1}{SourceCodePro-TLF}{} -\DeclareFontShape{OT1}{SourceCodePro-TLF}{l}{tl}{ - <-> \SourceCodePro@@scale SourceCodePro-Light-tlf-titling-ot1 -}{} - \DeclareFontShape{OT1}{SourceCodePro-TLF}{l}{n}{ <-> \SourceCodePro@@scale SourceCodePro-Light-tlf-ot1 }{} -\DeclareFontShape{OT1}{SourceCodePro-TLF}{k}{tl}{ - <-> \SourceCodePro@@scale SourceCodePro-Black-tlf-titling-ot1 -}{} - \DeclareFontShape{OT1}{SourceCodePro-TLF}{k}{n}{ <-> \SourceCodePro@@scale SourceCodePro-Black-tlf-ot1 }{} -\DeclareFontShape{OT1}{SourceCodePro-TLF}{b}{tl}{ - <-> \SourceCodePro@@scale SourceCodePro-Bold-tlf-titling-ot1 -}{} - \DeclareFontShape{OT1}{SourceCodePro-TLF}{b}{n}{ <-> \SourceCodePro@@scale SourceCodePro-Bold-tlf-ot1 }{} -\DeclareFontShape{OT1}{SourceCodePro-TLF}{sb}{tl}{ - <-> \SourceCodePro@@scale SourceCodePro-Semibold-tlf-titling-ot1 -}{} - \DeclareFontShape{OT1}{SourceCodePro-TLF}{sb}{n}{ <-> \SourceCodePro@@scale SourceCodePro-Semibold-tlf-ot1 }{} -\DeclareFontShape{OT1}{SourceCodePro-TLF}{m}{tl}{ - <-> \SourceCodePro@@scale SourceCodePro-Regular-tlf-titling-ot1 +\DeclareFontShape{OT1}{SourceCodePro-TLF}{mb}{n}{ + <-> \SourceCodePro@@scale SourceCodePro-Medium-tlf-ot1 }{} \DeclareFontShape{OT1}{SourceCodePro-TLF}{m}{n}{ <-> \SourceCodePro@@scale SourceCodePro-Regular-tlf-ot1 }{} -\DeclareFontShape{OT1}{SourceCodePro-TLF}{el}{tl}{ - <-> \SourceCodePro@@scale SourceCodePro-ExtraLight-tlf-titling-ot1 -}{} - \DeclareFontShape{OT1}{SourceCodePro-TLF}{el}{n}{ <-> \SourceCodePro@@scale SourceCodePro-ExtraLight-tlf-ot1 }{} +\DeclareFontShape{OT1}{SourceCodePro-TLF}{bx}{n}{ + <-> ssub * SourceCodePro-TLF/b/n +}{} + \endinput diff --git a/Master/texmf-dist/tex/latex/sourcecodepro/OT1SourceCodePro-TOsF.fd b/Master/texmf-dist/tex/latex/sourcecodepro/OT1SourceCodePro-TOsF.fd index 4cb3f74bf4e..249282b6cc1 100644 --- a/Master/texmf-dist/tex/latex/sourcecodepro/OT1SourceCodePro-TOsF.fd +++ b/Master/texmf-dist/tex/latex/sourcecodepro/OT1SourceCodePro-TOsF.fd @@ -1,7 +1,7 @@ -%% Generated by autoinst on 2012/11/04 +%% Generated by autoinst on 2013/01/17 %% \ProvidesFile{OT1SourceCodePro-TOsF.fd} - [2012/11/04 (autoinst) Font definitions for OT1/SourceCodePro-TOsF.] + [2013/01/17 (autoinst) Font definitions for OT1/SourceCodePro-TOsF.] \expandafter\ifx\csname SourceCodePro@scale\endcsname\relax \let\SourceCodePro@@scale\@empty @@ -27,6 +27,10 @@ <-> \SourceCodePro@@scale SourceCodePro-Semibold-tosf-ot1 }{} +\DeclareFontShape{OT1}{SourceCodePro-TOsF}{mb}{n}{ + <-> \SourceCodePro@@scale SourceCodePro-Medium-tosf-ot1 +}{} + \DeclareFontShape{OT1}{SourceCodePro-TOsF}{m}{n}{ <-> \SourceCodePro@@scale SourceCodePro-Regular-tosf-ot1 }{} @@ -35,4 +39,8 @@ <-> \SourceCodePro@@scale SourceCodePro-ExtraLight-tosf-ot1 }{} +\DeclareFontShape{OT1}{SourceCodePro-TOsF}{bx}{n}{ + <-> ssub * SourceCodePro-TOsF/b/n +}{} + \endinput diff --git a/Master/texmf-dist/tex/latex/sourcecodepro/T1SourceCodePro-OsF.fd b/Master/texmf-dist/tex/latex/sourcecodepro/T1SourceCodePro-OsF.fd index b1cab35dee8..6f74df4f12a 100644 --- a/Master/texmf-dist/tex/latex/sourcecodepro/T1SourceCodePro-OsF.fd +++ b/Master/texmf-dist/tex/latex/sourcecodepro/T1SourceCodePro-OsF.fd @@ -1,7 +1,7 @@ -%% Generated by autoinst on 2012/11/04 +%% Generated by autoinst on 2013/01/17 %% \ProvidesFile{T1SourceCodePro-OsF.fd} - [2012/11/04 (autoinst) Font definitions for T1/SourceCodePro-OsF.] + [2013/01/17 (autoinst) Font definitions for T1/SourceCodePro-OsF.] \expandafter\ifx\csname SourceCodePro@scale\endcsname\relax \let\SourceCodePro@@scale\@empty @@ -27,6 +27,10 @@ <-> \SourceCodePro@@scale SourceCodePro-Semibold-osf-t1 }{} +\DeclareFontShape{T1}{SourceCodePro-OsF}{mb}{n}{ + <-> \SourceCodePro@@scale SourceCodePro-Medium-osf-t1 +}{} + \DeclareFontShape{T1}{SourceCodePro-OsF}{m}{n}{ <-> \SourceCodePro@@scale SourceCodePro-Regular-osf-t1 }{} @@ -35,4 +39,8 @@ <-> \SourceCodePro@@scale SourceCodePro-ExtraLight-osf-t1 }{} +\DeclareFontShape{T1}{SourceCodePro-OsF}{bx}{n}{ + <-> ssub * SourceCodePro-OsF/b/n +}{} + \endinput diff --git a/Master/texmf-dist/tex/latex/sourcecodepro/T1SourceCodePro-Sup.fd b/Master/texmf-dist/tex/latex/sourcecodepro/T1SourceCodePro-Sup.fd deleted file mode 100644 index a82fd9d2e67..00000000000 --- a/Master/texmf-dist/tex/latex/sourcecodepro/T1SourceCodePro-Sup.fd +++ /dev/null @@ -1,38 +0,0 @@ -%% Generated by autoinst on 2012/11/04 -%% -\ProvidesFile{T1SourceCodePro-Sup.fd} - [2012/11/04 (autoinst) Font definitions for T1/SourceCodePro-Sup.] - -\expandafter\ifx\csname SourceCodePro@scale\endcsname\relax - \let\SourceCodePro@@scale\@empty -\else - \edef\SourceCodePro@@scale{s*[\csname SourceCodePro@scale\endcsname]}% -\fi - -\DeclareFontFamily{T1}{SourceCodePro-Sup}{} - -\DeclareFontShape{T1}{SourceCodePro-Sup}{l}{n}{ - <-> \SourceCodePro@@scale SourceCodePro-Light-sup-t1 -}{} - -\DeclareFontShape{T1}{SourceCodePro-Sup}{k}{n}{ - <-> \SourceCodePro@@scale SourceCodePro-Black-sup-t1 -}{} - -\DeclareFontShape{T1}{SourceCodePro-Sup}{b}{n}{ - <-> \SourceCodePro@@scale SourceCodePro-Bold-sup-t1 -}{} - -\DeclareFontShape{T1}{SourceCodePro-Sup}{sb}{n}{ - <-> \SourceCodePro@@scale SourceCodePro-Semibold-sup-t1 -}{} - -\DeclareFontShape{T1}{SourceCodePro-Sup}{m}{n}{ - <-> \SourceCodePro@@scale SourceCodePro-Regular-sup-t1 -}{} - -\DeclareFontShape{T1}{SourceCodePro-Sup}{el}{n}{ - <-> \SourceCodePro@@scale SourceCodePro-ExtraLight-sup-t1 -}{} - -\endinput diff --git a/Master/texmf-dist/tex/latex/sourcecodepro/T1SourceCodePro-TLF.fd b/Master/texmf-dist/tex/latex/sourcecodepro/T1SourceCodePro-TLF.fd index e2eb0ad8db0..c17c688d66e 100644 --- a/Master/texmf-dist/tex/latex/sourcecodepro/T1SourceCodePro-TLF.fd +++ b/Master/texmf-dist/tex/latex/sourcecodepro/T1SourceCodePro-TLF.fd @@ -1,7 +1,7 @@ -%% Generated by autoinst on 2012/11/04 +%% Generated by autoinst on 2013/01/17 %% \ProvidesFile{T1SourceCodePro-TLF.fd} - [2012/11/04 (autoinst) Font definitions for T1/SourceCodePro-TLF.] + [2013/01/17 (autoinst) Font definitions for T1/SourceCodePro-TLF.] \expandafter\ifx\csname SourceCodePro@scale\endcsname\relax \let\SourceCodePro@@scale\@empty @@ -11,52 +11,36 @@ \DeclareFontFamily{T1}{SourceCodePro-TLF}{} -\DeclareFontShape{T1}{SourceCodePro-TLF}{l}{tl}{ - <-> \SourceCodePro@@scale SourceCodePro-Light-tlf-titling-t1 -}{} - \DeclareFontShape{T1}{SourceCodePro-TLF}{l}{n}{ <-> \SourceCodePro@@scale SourceCodePro-Light-tlf-t1 }{} -\DeclareFontShape{T1}{SourceCodePro-TLF}{k}{tl}{ - <-> \SourceCodePro@@scale SourceCodePro-Black-tlf-titling-t1 -}{} - \DeclareFontShape{T1}{SourceCodePro-TLF}{k}{n}{ <-> \SourceCodePro@@scale SourceCodePro-Black-tlf-t1 }{} -\DeclareFontShape{T1}{SourceCodePro-TLF}{b}{tl}{ - <-> \SourceCodePro@@scale SourceCodePro-Bold-tlf-titling-t1 -}{} - \DeclareFontShape{T1}{SourceCodePro-TLF}{b}{n}{ <-> \SourceCodePro@@scale SourceCodePro-Bold-tlf-t1 }{} -\DeclareFontShape{T1}{SourceCodePro-TLF}{sb}{tl}{ - <-> \SourceCodePro@@scale SourceCodePro-Semibold-tlf-titling-t1 -}{} - \DeclareFontShape{T1}{SourceCodePro-TLF}{sb}{n}{ <-> \SourceCodePro@@scale SourceCodePro-Semibold-tlf-t1 }{} -\DeclareFontShape{T1}{SourceCodePro-TLF}{m}{tl}{ - <-> \SourceCodePro@@scale SourceCodePro-Regular-tlf-titling-t1 +\DeclareFontShape{T1}{SourceCodePro-TLF}{mb}{n}{ + <-> \SourceCodePro@@scale SourceCodePro-Medium-tlf-t1 }{} \DeclareFontShape{T1}{SourceCodePro-TLF}{m}{n}{ <-> \SourceCodePro@@scale SourceCodePro-Regular-tlf-t1 }{} -\DeclareFontShape{T1}{SourceCodePro-TLF}{el}{tl}{ - <-> \SourceCodePro@@scale SourceCodePro-ExtraLight-tlf-titling-t1 -}{} - \DeclareFontShape{T1}{SourceCodePro-TLF}{el}{n}{ <-> \SourceCodePro@@scale SourceCodePro-ExtraLight-tlf-t1 }{} +\DeclareFontShape{T1}{SourceCodePro-TLF}{bx}{n}{ + <-> ssub * SourceCodePro-TLF/b/n +}{} + \endinput diff --git a/Master/texmf-dist/tex/latex/sourcecodepro/T1SourceCodePro-TOsF.fd b/Master/texmf-dist/tex/latex/sourcecodepro/T1SourceCodePro-TOsF.fd index 6d216bf81b6..05c2728ea88 100644 --- a/Master/texmf-dist/tex/latex/sourcecodepro/T1SourceCodePro-TOsF.fd +++ b/Master/texmf-dist/tex/latex/sourcecodepro/T1SourceCodePro-TOsF.fd @@ -1,7 +1,7 @@ -%% Generated by autoinst on 2012/11/04 +%% Generated by autoinst on 2013/01/17 %% \ProvidesFile{T1SourceCodePro-TOsF.fd} - [2012/11/04 (autoinst) Font definitions for T1/SourceCodePro-TOsF.] + [2013/01/17 (autoinst) Font definitions for T1/SourceCodePro-TOsF.] \expandafter\ifx\csname SourceCodePro@scale\endcsname\relax \let\SourceCodePro@@scale\@empty @@ -27,6 +27,10 @@ <-> \SourceCodePro@@scale SourceCodePro-Semibold-tosf-t1 }{} +\DeclareFontShape{T1}{SourceCodePro-TOsF}{mb}{n}{ + <-> \SourceCodePro@@scale SourceCodePro-Medium-tosf-t1 +}{} + \DeclareFontShape{T1}{SourceCodePro-TOsF}{m}{n}{ <-> \SourceCodePro@@scale SourceCodePro-Regular-tosf-t1 }{} @@ -35,4 +39,8 @@ <-> \SourceCodePro@@scale SourceCodePro-ExtraLight-tosf-t1 }{} +\DeclareFontShape{T1}{SourceCodePro-TOsF}{bx}{n}{ + <-> ssub * SourceCodePro-TOsF/b/n +}{} + \endinput diff --git a/Master/texmf-dist/tex/latex/sourcecodepro/TS1SourceCodePro-OsF.fd b/Master/texmf-dist/tex/latex/sourcecodepro/TS1SourceCodePro-OsF.fd index 4f596ee1e08..d8b20e85bbd 100644 --- a/Master/texmf-dist/tex/latex/sourcecodepro/TS1SourceCodePro-OsF.fd +++ b/Master/texmf-dist/tex/latex/sourcecodepro/TS1SourceCodePro-OsF.fd @@ -1,7 +1,7 @@ -%% Generated by autoinst on 2012/11/04 +%% Generated by autoinst on 2013/01/17 %% \ProvidesFile{TS1SourceCodePro-OsF.fd} - [2012/11/04 (autoinst) Font definitions for TS1/SourceCodePro-OsF.] + [2013/01/17 (autoinst) Font definitions for TS1/SourceCodePro-OsF.] \expandafter\ifx\csname SourceCodePro@scale\endcsname\relax \let\SourceCodePro@@scale\@empty @@ -27,6 +27,10 @@ <-> \SourceCodePro@@scale SourceCodePro-Semibold-osf-ts1 }{} +\DeclareFontShape{TS1}{SourceCodePro-OsF}{mb}{n}{ + <-> \SourceCodePro@@scale SourceCodePro-Medium-osf-ts1 +}{} + \DeclareFontShape{TS1}{SourceCodePro-OsF}{m}{n}{ <-> \SourceCodePro@@scale SourceCodePro-Regular-osf-ts1 }{} @@ -35,4 +39,8 @@ <-> \SourceCodePro@@scale SourceCodePro-ExtraLight-osf-ts1 }{} +\DeclareFontShape{TS1}{SourceCodePro-OsF}{bx}{n}{ + <-> ssub * SourceCodePro-OsF/b/n +}{} + \endinput diff --git a/Master/texmf-dist/tex/latex/sourcecodepro/TS1SourceCodePro-TLF.fd b/Master/texmf-dist/tex/latex/sourcecodepro/TS1SourceCodePro-TLF.fd index d1697b269bd..10368f8d5dd 100644 --- a/Master/texmf-dist/tex/latex/sourcecodepro/TS1SourceCodePro-TLF.fd +++ b/Master/texmf-dist/tex/latex/sourcecodepro/TS1SourceCodePro-TLF.fd @@ -1,7 +1,7 @@ -%% Generated by autoinst on 2012/11/04 +%% Generated by autoinst on 2013/01/17 %% \ProvidesFile{TS1SourceCodePro-TLF.fd} - [2012/11/04 (autoinst) Font definitions for TS1/SourceCodePro-TLF.] + [2013/01/17 (autoinst) Font definitions for TS1/SourceCodePro-TLF.] \expandafter\ifx\csname SourceCodePro@scale\endcsname\relax \let\SourceCodePro@@scale\@empty @@ -27,6 +27,10 @@ <-> \SourceCodePro@@scale SourceCodePro-Semibold-tlf-ts1 }{} +\DeclareFontShape{TS1}{SourceCodePro-TLF}{mb}{n}{ + <-> \SourceCodePro@@scale SourceCodePro-Medium-tlf-ts1 +}{} + \DeclareFontShape{TS1}{SourceCodePro-TLF}{m}{n}{ <-> \SourceCodePro@@scale SourceCodePro-Regular-tlf-ts1 }{} @@ -35,4 +39,8 @@ <-> \SourceCodePro@@scale SourceCodePro-ExtraLight-tlf-ts1 }{} +\DeclareFontShape{TS1}{SourceCodePro-TLF}{bx}{n}{ + <-> ssub * SourceCodePro-TLF/b/n +}{} + \endinput diff --git a/Master/texmf-dist/tex/latex/sourcecodepro/TS1SourceCodePro-TOsF.fd b/Master/texmf-dist/tex/latex/sourcecodepro/TS1SourceCodePro-TOsF.fd index 25d4a72632c..db71b317356 100644 --- a/Master/texmf-dist/tex/latex/sourcecodepro/TS1SourceCodePro-TOsF.fd +++ b/Master/texmf-dist/tex/latex/sourcecodepro/TS1SourceCodePro-TOsF.fd @@ -1,7 +1,7 @@ -%% Generated by autoinst on 2012/11/04 +%% Generated by autoinst on 2013/01/17 %% \ProvidesFile{TS1SourceCodePro-TOsF.fd} - [2012/11/04 (autoinst) Font definitions for TS1/SourceCodePro-TOsF.] + [2013/01/17 (autoinst) Font definitions for TS1/SourceCodePro-TOsF.] \expandafter\ifx\csname SourceCodePro@scale\endcsname\relax \let\SourceCodePro@@scale\@empty @@ -27,6 +27,10 @@ <-> \SourceCodePro@@scale SourceCodePro-Semibold-tosf-ts1 }{} +\DeclareFontShape{TS1}{SourceCodePro-TOsF}{mb}{n}{ + <-> \SourceCodePro@@scale SourceCodePro-Medium-tosf-ts1 +}{} + \DeclareFontShape{TS1}{SourceCodePro-TOsF}{m}{n}{ <-> \SourceCodePro@@scale SourceCodePro-Regular-tosf-ts1 }{} @@ -35,4 +39,8 @@ <-> \SourceCodePro@@scale SourceCodePro-ExtraLight-tosf-ts1 }{} +\DeclareFontShape{TS1}{SourceCodePro-TOsF}{bx}{n}{ + <-> ssub * SourceCodePro-TOsF/b/n +}{} + \endinput diff --git a/Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro-otf.sty b/Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro-otf.sty deleted file mode 100644 index e269f1c61d5..00000000000 --- a/Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro-otf.sty +++ /dev/null @@ -1,98 +0,0 @@ -% Source Code Pro for LaTeX -% -% Silke Hofstra, silke@slxh.nl -% -% OpenType version of Source Code Pro for XeTeX and LuaTeX users. -% -% Licenced under the LPPL -% -\NeedsTeXFormat{LaTeX2e}[1994/12/01] -\ProvidesPackage{sourcecodepro-otf}[2012/11/04 v1.02 Adobe's Source Code Pro typeface] - -% Check if engine is XeTeX or LuaTeX -\RequirePackage{expl3}[2011/09/05] -\ExplSyntaxOn -\msg_new:nnn {sourcecodepro-otf} {cannot-use-pdftex} -{ - The~ sourcecodepro-otf~ package~ requires~ either~ XeTeX~ or~ LuaTeX~ to~ function. - \\\\ - You~ must~ change~ your~ typesetting~ engine~ to,~ - e.g.,~ "xelatex"~ or~ "lualatex"\\ - instead~ of~ plain~ "latex"~ or~ "pdflatex". -} -\xetex_if_engine:F { - \luatex_if_engine:TF { - \RequirePackage{luaotfload} - \RequireLuaModule{fontspec} - }{ - \msg_fatal:nn {sourcecodepro-otf} {cannot-use-pdftex} - } -} - -\RequirePackage{fontspec} - -\IfFileExists{xkeyval.sty}{ - \newcommand*{\sourcecodepro@scale}{1} - \RequirePackage{xkeyval} - \DeclareOptionX{scaled}{\renewcommand*{\sourcecodepro@scale}{##1}} -}{ - \let\DeclareOptionX\DeclareOption - \let\ExecuteOptionsX\ExecuteOptions - \let\ProcessOptionsX\ProcessOptions -} - -\DeclareOptionX{lining}{\edef\sourcecodepro@figurestyle{}} -\DeclareOptionX{nf}{\edef\sourcecodepro@figurestyle{}} -\DeclareOptionX{oldstyle}{\edef\sourcecodepro@figurestyle{OldStyle}} -\DeclareOptionX{osf}{\edef\sourcecodepro@figurestyle{OldStyle}} -\DeclareOptionX{black}{\edef\sourcecodepro@boldstyle{Black}} -\DeclareOptionX{semibold}{\edef\sourcecodepro@boldstyle{Semibold}} -\DeclareOptionX{bold}{\edef\sourcecodepro@boldstyle{Bold}} -\DeclareOptionX{light}{\edef\sourcecodepro@regstyle{Light}} -\DeclareOptionX{extralight}{\edef\sourcecodepro@regstyle{ExtraLight}} -\DeclareOptionX{regular}{\edef\sourcecodepro@regstyle{Regular}} -\DeclareOptionX{default}{\renewcommand*{\familydefault}{\ttdefault}} -\ExecuteOptionsX{lining,bold,regular} -\ProcessOptionsX\relax - -% Shared features -\defaultfontfeatures{ - Ligatures = TeX , - Numbers = \sourcecodepro@figurestyle, - Scale = \sourcecodepro@scale , - Extension = .otf } - -% Default font -\setmonofont - [ UprightFont = *-\sourcecodepro@regstyle , - ItalicFont = *-\sourcecodepro@regstyle , - BoldFont = *-\sourcecodepro@boldstyle , - BoldItalicFont = *-\sourcecodepro@boldstyle ] - {SourceCodePro} - -% Font commands -\newfontfamily\sourcecodepro - [ UprightFont = *-Regular , - ItalicFont = *-Regular , - BoldFont = *-Bold , - BoldItalicFont = *-Bold ] - {SourceCodePro} - -\newfontfamily\sourcecodeprolight - [ UprightFont = *-Light , - ItalicFont = *-Light , - BoldFont = *-Semibold , - BoldItalicFont = *-Semibold ] - {SourceCodePro} - -\newfontfamily\sourcecodeproextreme - [ UprightFont = *-ExtraLight , - ItalicFont = *-ExtraLight , - BoldFont = *-Black , - BoldItalicFont = *-Black ] - {SourceCodePro} - -% Old Style numbers -\renewcommand*\oldstylenums[1]{\addfontfeature{Numbers=OldStyle}#1} - -\endinput \ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro-type1-autoinst.sty b/Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro-type1-autoinst.sty index dd6b2b69773..a00ade01cb3 100644 --- a/Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro-type1-autoinst.sty +++ b/Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro-type1-autoinst.sty @@ -1,28 +1,13 @@ -%% Generated by autoinst on 2012/11/04 +%% Generated by autoinst on 2013/01/17 %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{SourceCodePro} - [2012/11/04 (autoinst) Style file for SourceCodePro.] + [2013/01/17 (autoinst) Style file for SourceCodePro.] \RequirePackage[T1,LY1]{fontenc} \RequirePackage{textcomp} \IfFileExists{fontaxes.sty}{ \RequirePackage{fontaxes} - \providecommand{\tldefault}{tl} - \DeclareRobustCommand\tlshape{\not@math@alphabet\tlshape\relax - \fontsecondaryshape\tldefault\selectfont} - \DeclareTextFontCommand{\texttl}{\tlshape} - \let\texttitling\texttl - \fa@naming@exception{shape}{{n}{tl}}{tl} - \fa@naming@exception{shape}{{it}{tl}}{tlit} - - \fa@naming@exception{figures}{{superior}{proportional}}{Sup} - \fa@naming@exception{figures}{{superior}{tabular}}{Sup} - \def\sufigures{\@nomath\sufigures - \fontfigurestyle{superior}\selectfont} - \DeclareTextFontCommand{\textsu}{\sufigures} - \let\textsuperior\textsu - }{} \IfFileExists{xkeyval.sty}{ @@ -43,6 +28,7 @@ \DeclareOptionX{semibold}{\renewcommand*{\bfdefault}{sb}} \DeclareOptionX{bold}{\renewcommand*{\bfdefault}{b}} \DeclareOptionX{light}{\renewcommand*{\mddefault}{l}} +\DeclareOptionX{medium}{\renewcommand*{\mddefault}{mb}} \DeclareOptionX{regular}{\renewcommand*{\mddefault}{m}} \ExecuteOptionsX{oldstyle,proportional,bold,regular} \ProcessOptionsX\relax diff --git a/Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro-type1.sty b/Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro-type1.sty deleted file mode 100644 index 5d4f99996f8..00000000000 --- a/Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro-type1.sty +++ /dev/null @@ -1,73 +0,0 @@ -% Source Code Pro for LaTeX -% -% Silke Hofstra, silke@slxh.nl -% -% Autoinst based file which loads the type1 version of Source Code Pro -% -% Licenced under the LPPL -% -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{sourcecodepro-type1} - [2012/11/04 v1.02 Adobe's Source Code Pro typeface] - -\RequirePackage[LY1,T1]{fontenc} -\RequirePackage{textcomp} -\IfFileExists{fontaxes.sty}{ - \RequirePackage{fontaxes} - \providecommand{\tldefault}{tl} - \DeclareRobustCommand\tlshape{\not@math@alphabet\tlshape\relax - \fontsecondaryshape\tldefault\selectfont} - \DeclareTextFontCommand{\texttl}{\tlshape} - \let\texttitling\texttl - \fa@naming@exception{shape}{{n}{tl}}{tl} - \fa@naming@exception{shape}{{it}{tl}}{tlit} - - \fa@naming@exception{figures}{{superior}{proportional}}{Sup} - \fa@naming@exception{figures}{{superior}{tabular}}{Sup} - \def\sufigures{\@nomath\sufigures - \fontfigurestyle{superior}\selectfont} - \DeclareTextFontCommand{\textsu}{\sufigures} - \let\textsuperior\textsu - -}{} - -\IfFileExists{xkeyval.sty}{ - \newcommand*{\sourcecodepro@scale}{1} - \RequirePackage{xkeyval} - \DeclareOptionX{scaled}{\renewcommand*{\sourcecodepro@scale}{##1}} -}{ - \let\DeclareOptionX\DeclareOption - \let\ExecuteOptionsX\ExecuteOptions - \let\ProcessOptionsX\ProcessOptions -} - - -\DeclareOptionX{lining}{\edef\sourcecodepro@figurestyle{LF}} -\DeclareOptionX{nf}{\edef\sourcecodepro@figurestyle{LF}} -\DeclareOptionX{oldstyle}{\edef\sourcecodepro@figurestyle{OsF}} -\DeclareOptionX{osf}{\edef\sourcecodepro@figurestyle{OsF}} -\DeclareOptionX{black}{\renewcommand*{\bfdefault}{k}} -\DeclareOptionX{semibold}{\renewcommand*{\bfdefault}{sb}} -\DeclareOptionX{bold}{\renewcommand*{\bfdefault}{b}} -\DeclareOptionX{light}{\renewcommand*{\mddefault}{l}} -\DeclareOptionX{extralight}{\renewcommand*{\mddefault}{el}} -\DeclareOptionX{regular}{\renewcommand*{\mddefault}{m}} -\DeclareOptionX{default}{\renewcommand*{\familydefault}{\ttdefault}} -\ExecuteOptionsX{lining,bold,regular} -\ProcessOptionsX\relax - -\renewcommand*\oldstylenums[1]{% - \begingroup - \ifmmode - \mathgroup\symletters #1% - \else - \fontfamily{SourceCodePro-TOsF}\selectfont #1% - \fi - \endgroup -} - -\renewcommand* - {\ttdefault} - {SourceCodePro-T\sourcecodepro@figurestyle} - -\endinput diff --git a/Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro.sty b/Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro.sty index 1e06940f2ef..69e28811aa9 100644 --- a/Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro.sty +++ b/Master/texmf-dist/tex/latex/sourcecodepro/sourcecodepro.sty @@ -1,29 +1,201 @@ -% Source Code Pro for LaTeX -% +% Source Sans Pro for LaTeX +% % Silke Hofstra, silke@slxh.nl % -% This file selects either the OTF or the TYPE1 package based on your engine. +% This file selects either the OTF or the TYPE1 fonts based on +% the LaTeX engine used. % -% Licenced under the LPPL +% Licenced under the LPPL v1.3 or higher. % \NeedsTeXFormat{LaTeX2e}[1994/12/01] -\ProvidesPackage{sourcecodepro}[2012/11/04 v1.02 Adobe's Source Code Pro typeface] -% -\RequirePackage{ifxetex,ifluatex} +\ProvidesPackage{sourcecodepro}[2012/12/24 v2.0 Adobe's Source Code Pro typeface] + +\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp} + +% Switches +\newif\ifsourcecodepro@otf +\newif\ifsourcecodepro@default +\newif\ifsourcecodepro@oldstyle +\newif\ifsourcecodepro@black +\newif\ifsourcecodepro@semibold +\newif\ifsourcecodepro@light +\newif\ifsourcecodepro@extralight + +% Scaling command +\newcommand*{\sourcecodepro@scale}{1} + +% Use OpenType fonts for XeTeX and LuaTeX. \ifxetex - \edef\sourcecodepro@pack{otf} + \sourcecodepro@otftrue \else \ifluatex - \edef\sourcecodepro@pack{otf} + \sourcecodepro@otftrue + \fi +\fi + +\DeclareOptionX{lining} {\sourcecodepro@oldstylefalse} +\DeclareOptionX{nf} {\sourcecodepro@oldstylefalse} +\DeclareOptionX{lf} {\sourcecodepro@oldstylefalse} +\DeclareOptionX{oldstyle} {\sourcecodepro@oldstyletrue} +\DeclareOptionX{osf} {\sourcecodepro@oldstyletrue} +\DeclareOptionX{black} {\sourcecodepro@blacktrue \sourcecodepro@semiboldfalse} +\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{scale} {\renewcommand*{\sourcecodepro@scale}{#1}} +\DeclareOptionX{scaled} {\renewcommand*{\sourcecodepro@scale}{#1}} +\DeclareOptionX{default} {\sourcecodepro@defaulttrue} +\DeclareOptionX{type1} {\sourcecodepro@otffalse} +\DeclareOptionX{t1} {\sourcecodepro@otffalse} +\DeclareOptionX{opentype} {\sourcecodepro@otftrue} +\DeclareOptionX{otf} {\sourcecodepro@otftrue} + +% Default options +\ExecuteOptionsX{lining,bold,regular} +\ProcessOptionsX\relax + +% Load OpenType files +\ifsourcecodepro@otf + \RequirePackage{fontspec} + + % Oldstyle/Lining + \ifsourcecodepro@oldstyle + \edef\sourcecodepro@figurestyle{OldStyle} + \else + \edef\sourcecodepro@figurestyle{} + \fi + + % Black/Semibold/Bold + \ifsourcecodepro@black + \edef\sourcecodepro@boldstyle{Black} + \else + \ifsourcecodepro@semibold + \edef\sourcecodepro@boldstyle{Semibold} + \else + \edef\sourcecodepro@boldstyle{Bold} + \fi + \fi + + % Light/ExtraLight/Regular + \ifsourcecodepro@light + \edef\sourcecodepro@regstyle{Light} \else - \edef\sourcecodepro@pack{type1} + \ifsourcecodepro@extralight + \edef\sourcecodepro@regstyle{ExtraLight} + \else + \edef\sourcecodepro@regstyle{Regular} + \fi + \fi + + % Shared features + \defaultfontfeatures{ + Ligatures = TeX , + Numbers = \sourcecodepro@figurestyle , + Scale = \sourcecodepro@scale , + Extension = .otf } + + % Sans serif font + \setmonofont + [ UprightFont = *-\sourcecodepro@regstyle , + ItalicFont = *-\sourcecodepro@regstyle , + BoldFont = *-\sourcecodepro@boldstyle , + BoldItalicFont = *-\sourcecodepro@boldstyle ] + {SourceCodePro} + + % Font families + % Regular/Bold + \newfontfamily\sourcecodepro + [ UprightFont = *-Regular , + ItalicFont = *-Regular , + BoldFont = *-Bold , + BoldItalicFont = *-Bold ] + {SourceCodePro} + + % Light/Semibold + \newfontfamily\sourcecodeprolight + [ UprightFont = *-Light , + ItalicFont = *-Light , + BoldFont = *-Semibold , + BoldItalicFont = *-Semibold ] + {SourceCodePro} + + % ExtraLight/Black + \newfontfamily\sourcecodeproextreme + [ UprightFont = *-ExtraLight , + ItalicFont = *-ExtraLight , + BoldFont = *-Black , + BoldItalicFont = *-Black ] + {SourceCodePro} + + % Lining figures + \newfontfamily\sourcecodeprolf + [ Numbers = , + UprightFont = *-\sourcecodepro@regstyle , + ItalicFont = *-\sourcecodepro@regstyle , + BoldFont = *-\sourcecodepro@boldstyle , + BoldItalicFont = *-\sourcecodepro@boldstyle ] + {SourceCodePro} + + % Dont keep all default font features + \defaultfontfeatures{} + +% Load type1 font. +\else + \RequirePackage[OT1,LY1,T1]{fontenc} + + % Oldstyle/Lining + \ifsourcecodepro@oldstyle + \edef\sourcecodepro@figurestyle{OsF} + \else + \edef\sourcecodepro@figurestyle{LF} + \fi + + % Black/Semibold/Bold + \ifsourcecodepro@black + \renewcommand*{\bfdefault}{k} + \else + \ifsourcecodepro@semibold + \renewcommand*{\bfdefault}{sb} + \else + \renewcommand*{\bfdefault}{b} + \fi + \fi + + % Light/ExtraLight/Regular + \ifsourcecodepro@light + \renewcommand*{\mddefault}{l} + \else + \ifsourcecodepro@extralight + \renewcommand*{\mddefault}{el} + \else + \renewcommand*{\mddefault}{m} + \fi + \fi + + % Sans serif font + \renewcommand* + {\sfdefault} + {SourceCodePro-T\sourcecodepro@figurestyle} + + % If source sans pro is the default font \oldstylenums needs a new definition. + \ifsourcecodepro@default + \renewcommand*\oldstylenums[1]{% + \begingroup + \ifmmode + \mathgroup\symletters #1% + \else + \fontfamily{SourceCodePro-TOsF}\selectfont #1% + \fi + \endgroup + } \fi \fi -% -\DeclareOption*{ - \PassOptionsToPackage{\CurrentOption}{sourcecodepro-\sourcecodepro@pack}% -} -\ProcessOptions\relax -% -\RequirePackage{sourcecodepro-\sourcecodepro@pack} + +% Set default font family +\ifsourcecodepro@default + \let\familydefault\sfdefault +\fi + \endinput \ No newline at end of file -- cgit v1.2.3