summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/sourcesanspro/sourcesanspro-type1.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/sourcesanspro/sourcesanspro-type1.sty')
-rw-r--r--Master/texmf-dist/tex/latex/sourcesanspro/sourcesanspro-type1.sty63
1 files changed, 63 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/sourcesanspro/sourcesanspro-type1.sty b/Master/texmf-dist/tex/latex/sourcesanspro/sourcesanspro-type1.sty
new file mode 100644
index 00000000000..af8b0bbdc9b
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/sourcesanspro/sourcesanspro-type1.sty
@@ -0,0 +1,63 @@
+% Source Sans Pro for LaTeX
+%
+% Silke Hofstra, silke@slxh.nl
+%
+% Autoinst based file which loads the type1 version of Source Sans Pro
+%
+% Licenced under the LPPL
+%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{sourcesanspro-type1}[2012/10/31 v1.01 Adobe's Source Sans Pro typeface]
+
+\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}{
+ \newcommand*{\sourcesanspro@scale}{1}
+ \RequirePackage{xkeyval}
+ \DeclareOptionX{scaled}{\renewcommand*{\sourcesanspro@scale}{##1}}
+}{
+ \let\DeclareOptionX\DeclareOption
+ \let\ExecuteOptionsX\ExecuteOptions
+ \let\ProcessOptionsX\ProcessOptions
+}
+
+\DeclareOptionX{lining}{\edef\sourcesanspro@figurestyle{LF}}
+\DeclareOptionX{nf}{\edef\sourcesanspro@figurestyle{LF}}
+\DeclareOptionX{oldstyle}{\edef\sourcesanspro@figurestyle{OsF}}
+\DeclareOptionX{osf}{\edef\sourcesanspro@figurestyle{OsF}}
+\DeclareOptionX{tabular}{\edef\sourcesanspro@figurealign{T}}
+\DeclareOptionX{proportional}{\edef\sourcesanspro@figurealign{}}
+\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}{\sfdefault}}
+\ExecuteOptionsX{lining,proportional,bold,regular}
+\ProcessOptionsX\relax
+
+\renewcommand*
+ {\sfdefault}
+ {SourceSansPro-\sourcesanspro@figurealign\sourcesanspro@figurestyle}
+
+\endinput