Skip to content

Commit

Permalink
Update to v2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
silkeh committed Jan 13, 2018
1 parent 51ae1ae commit 5909885
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 44 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
*.synctex.gz
*.toc
*.tds.zip
*.xdv
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Source Code Pro v2.6
Source Code Pro v2.7
====================
This package provides the Source Code Pro typeface as a LaTeX package.
Full documentation and revision history in `sourcecodepro.pdf`.
Expand Down
Binary file modified doc/latex/sourcecodepro/sourcecodepro-otf-specimen.pdf
Binary file not shown.
Binary file modified doc/latex/sourcecodepro/sourcecodepro-type1-specimen.pdf
Binary file not shown.
Binary file modified doc/latex/sourcecodepro/sourcecodepro.pdf
Binary file not shown.
29 changes: 7 additions & 22 deletions doc/latex/sourcecodepro/sourcecodepro.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
\documentclass[10pt,a4paper,english]{article}
\usepackage{geometry,hologo,hyperref,babel,mdwlist,array,multicol}
\usepackage{geometry,hologo,hyperref,babel,mdwlist,array,multicol,graphicx}
\usepackage[default,osf]{sourcesanspro}
\usepackage[scaled=.95]{sourcecodepro}
\hypersetup{
Expand All @@ -16,7 +16,7 @@
\Large Adobe's Source Code Pro typeface for \LaTeX
}
\author{Silke Hofstra, \href{mailto:tex@slxh.nl}{tex@slxh.nl}}
\date{Documentation for sourcecodepro v2.6.\\ \today}
\date{Documentation for sourcecodepro v2.7.\\ \today}

\begin{document}
\maketitle
Expand Down Expand Up @@ -65,30 +65,11 @@ \section{Specimen}

\section{OpenType}
The OpenType fonts have many features, including old style numerals (\texttt{\oldstylenums{1 6 9}})
%, ligatures (\texttt{fi fl})
and stylistic alternatives (\texttt{{\addfontfeature{Style=Alternate}a g}}).

\subsection{Features}
A complete list of available font features is available on page \pageref{sec:otfinfo}. More information on how to use font features can be found in the \href{http://mirror.ctan.org/macros/latex/contrib/fontspec/fontspec.pdf}{fontspec documentation}.

\subsection{Files}
\begin{itemize*}
\item SourceCodePro-ExtraLight.otf
\item SourceCodePro-ExtraLightIt.otf
\item SourceCodePro-Light.otf
\item SourceCodePro-LightIt.otf
\item SourceCodePro-Regular.otf
\item SourceCodePro-RegularIt.otf
\item SourceCodePro-Medium.otf
\item SourceCodePro-MediumIt.otf
\item SourceCodePro-Semibold.otf
\item SourceCodePro-SemiboldIt.otf
\item SourceCodePro-Bold.otf
\item SourceCodePro-BoldIt.otf
\item SourceCodePro-Black.otf
\item SourceCodePro-BlackIt.otf
\end{itemize*}

\section{Type1}
The following Type1 font families are included:
\begin{itemize*}
Expand All @@ -100,7 +81,9 @@ \section{Type1}
\section{Version history}
\subsection*{2.7}
\begin{itemize*}
\item Make the ligatures configurable through the \texttt{ligatures} option.
\item Make the ligatures for the OpenType fonts configurable with the \texttt{ligatures} option.
\item Update the fonts to Roman v2.030 and Italic v1.050.
\item Generate fonts without f-ligatures.
\end{itemize*}

\subsection*{2.6}
Expand Down Expand Up @@ -203,6 +186,7 @@ \section{Opentype features}
cv14 & Character Variants 14 - typographic hyphen [-] \\
cv15 & Character Variants 15 - typographic asterisk [*] \\
cv16 & Character Variants 16 - slashed dollar sign [\$]\\
cv17 & Character Variants 17 - alternate numeral one [1] \\
dnom & Denominators \\
frac & Fractions \\
mark & Mark Positioning \\
Expand All @@ -219,6 +203,7 @@ \section{Opentype features}
ss04 & Stylistic Set 4 - serifed i \\
ss05 & Stylistic Set 5 - Sami \symbol{"014A}, cursive \symbol{"03C6} \\
ss06 & Stylistic Set 6 - slashed dollar sign [\$] \\
ss07 & Stylistic Set 7 - alternate numeral one [1] \\
subs & Subscript \\
sups & Superscript \\
zero & Slashed Zero
Expand Down
42 changes: 21 additions & 21 deletions tex/latex/sourcecodepro/sourcecodepro.sty
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
% Licenced under the LPPL v1.3 or higher.
%
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
\ProvidesPackage{sourcecodepro}[2015/10/09 v2.6 Adobe's Source Code Pro typeface]
\ProvidesPackage{sourcecodepro}[2018/01/13 v2.7 Adobe's Source Code Pro typeface]

\RequirePackage{ifxetex,ifluatex,xkeyval}

Expand Down Expand Up @@ -66,17 +66,17 @@
% Load OpenType files
\ifsourcecodepro@otf
\RequirePackage{fontspec}

% Create a fixed liningnums command:
\renewcommand*\liningnums[1]{{\addfontfeature{RawFeature=+lnum;-onum}#1}}

% Oldstyle/Lining
\ifsourcecodepro@oldstyle
\def\sourcecodepro@figurestyle{OldStyle}
\else
\def\sourcecodepro@figurestyle{}
\fi

% Black/Semibold/Bold
\ifsourcecodepro@black
\def\sourcecodepro@boldstyle{Black}
Expand All @@ -87,7 +87,7 @@
\def\sourcecodepro@boldstyle{Bold}
\fi
\fi

% Light/ExtraLight/Regular/Medium
\ifsourcecodepro@light
\def\sourcecodepro@regstyle{Light}
Expand All @@ -102,66 +102,66 @@
\fi
\fi
\fi

% Shared features
\defaultfontfeatures{
Ligatures = \sourcecodepro@ligatures ,
Numbers = \sourcecodepro@figurestyle ,
Scale = \SourceCodePro@scale ,
Extension = .otf }

% Monospace font
\ifsourcecodepro@ttdefault
\setmonofont
[ UprightFont = *-\sourcecodepro@regstyle ,
ItalicFont = *-\sourcecodepro@regstyle It ,
BoldFont = *-\sourcecodepro@boldstyle ,
BoldFont = *-\sourcecodepro@boldstyle ,
BoldItalicFont = *-\sourcecodepro@boldstyle It ]
{SourceCodePro}
\fi

% Font families
% Regular/Bold
\newfontfamily\sourcecodepro
[ UprightFont = *-Regular ,
ItalicFont = *-RegularIt ,
BoldFont = *-Bold ,
BoldFont = *-Bold ,
BoldItalicFont = *-BoldIt ]
{SourceCodePro}

% Medium/Bold
\newfontfamily\sourcecodepromedium
[ UprightFont = *-Medium ,
ItalicFont = *-MediumIt ,
BoldFont = *-Bold ,
BoldFont = *-Bold ,
BoldItalicFont = *-BoldIt ]
{SourceCodePro}

% Light/Semibold
\newfontfamily\sourcecodeprolight
[ UprightFont = *-Light ,
ItalicFont = *-LightIt ,
BoldFont = *-Semibold ,
BoldItalicFont = *-SemiboldIt ]
{SourceCodePro}

% ExtraLight/Black
\newfontfamily\sourcecodeproextreme
[ UprightFont = *-ExtraLight ,
ItalicFont = *-ExtraLightIt ,
BoldFont = *-Black ,
BoldItalicFont = *-BlackIt ]
{SourceCodePro}

% Lining figures
\newfontfamily\sourcecodeprolf
[ Numbers = ,
UprightFont = *-\sourcecodepro@regstyle ,
ItalicFont = *-\sourcecodepro@regstyle It ,
BoldFont = *-\sourcecodepro@boldstyle ,
BoldFont = *-\sourcecodepro@boldstyle ,
BoldItalicFont = *-\sourcecodepro@boldstyle It ]
{SourceCodePro}

% Dont keep all default font features
\defaultfontfeatures{}

Expand All @@ -176,7 +176,7 @@
\else
\def\sourcecodepro@figurestyle{LF}
\fi

% Black/Semibold/Bold
\ifsourcecodepro@black
\def\bfseries@tt{k}
Expand All @@ -187,7 +187,7 @@
\def\bfseries@tt{b}
\fi
\fi

% Light/ExtraLight/Regular/Medium
\ifsourcecodepro@light
\def\mdseries@tt{l}
Expand All @@ -207,8 +207,8 @@
\ifsourcecodepro@ttdefault
\edef\ttdefault{SourceCodePro-T\sourcecodepro@figurestyle}
\fi
% If source code pro is the default font \oldstylenums needs a new definition.

% If source code pro is the default font \oldstylenums needs a new definition.
\ifsourcecodepro@default
\let\nativeoldstylenums\oldstylenums
\renewcommand*\oldstylenums[1]{%
Expand Down

0 comments on commit 5909885

Please sign in to comment.