Skip to content

Commit

Permalink
Initial commit with project files
Browse files Browse the repository at this point in the history
  • Loading branch information
silkeh committed Oct 28, 2014
0 parents commit 53b04ee
Show file tree
Hide file tree
Showing 404 changed files with 3,046 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.aux
*.bcf
*.log
*.out
*.run.xml
*.synctex.gz
*.toc

29 changes: 29 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Source Code Pro v2.3
====================
This package provides the Source Code Pro typeface as a LaTeX package.
Full documentation and revision history in `sourcecodepro.pdf`.

Options
-------
The following options can be used:

* `oldstyle, osf`: use old style numbers.
* `lining, nf`: use lining numbers.
* `black`: `\bfseries` is black.
* `semibold`: `\bfseries` is semibold.
* `bold`: `\bfseries` is bold.
* `light`: `\mdseries` is light.
* `extralight`: `\mdseries` is extra light.
* `regular`: `\mdseries` is regular.
* `scale, scaled`: set scaling for the font, eg: scale=.5
* `default`: Source Code Pro is set as default font family.
* `nottdefault`: Source Code Pro is not set as monospaced family.
* `type1, t1`: override detection and load the Type1 font family.
* `opentype, otf`: override detection and load the OpenType font family.

License
-------
Fonts are provided under the SIL Open Font License 1.1.
LaTeX source is licensed under the LPPL.

Enjoy!
93 changes: 93 additions & 0 deletions doc/latex/sourcecodepro/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries.

This Font Software is licensed under the SIL Open Font License, Version 1.1.

This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file not shown.
32 changes: 32 additions & 0 deletions doc/latex/sourcecodepro/sourcecodepro-otf-specimen.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
\documentclass[11pt,a4paper]{article}
\usepackage{array}
\usepackage[default,opentype]{sourcecodepro}
\usepackage[margin=0mm,paperheight=25mm,paperwidth=170mm]{geometry}

\newcommand*\spA{abcde}
\newcommand*\spB{01469}
\newcommand*\spr[1][\spA]{& #1 & #1 & #1 & #1 & #1 & #1 \\}

\begin{document}
\centering
\begin{tabular}{
>{\sourcecodepro}l
>{\sourcecodeproextreme}c
>{\sourcecodeprolight}c
>{\sourcecodepro}c
>{\sourcecodeprolight\bfseries}c
>{\sourcecodepro\bfseries}c
>{\sourcecodeproextreme\bfseries}c }
& ExtraLight & Light & Regular & Semibold & Bold & Black \\
normal \spr
% italic \spr[\itshape\spA]
% small-caps \spr[\scshape\spA]
capitals \spr[\MakeUppercase\spA]
lining \spr[\spB]
% lining italic \spr[\itshape\spB]
% lining small-caps \spr[\scshape\spB]
old-style \spr[\oldstylenums{\spB}]
% old-style italic \spr[\oldstylenums{\itshape\spB}]
% old-style small-caps \spr[\oldstylenums{\scshape\spB}]
\end{tabular}
\end{document}
Binary file not shown.
33 changes: 33 additions & 0 deletions doc/latex/sourcecodepro/sourcecodepro-type1-specimen.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
\documentclass[11pt,a4paper]{article}
\usepackage{array}
\usepackage[default,type1]{sourcecodepro}
\usepackage[T1]{fontenc}
\usepackage[margin=0mm,paperheight=25mm,paperwidth=170mm]{geometry}

\newcommand*\spA{abcde}
\newcommand*\spB{01469}
\newcommand*\spr[1][\spA]{& #1 & #1 & #1 & #1 & #1 & #1 \\}

\begin{document}
\centering
\begin{tabular}{
l
>{\fontseries{el}\fontshape{n}\selectfont}c
>{\fontseries{l}\fontshape{n}\selectfont}c
>{\fontseries{m}\fontshape{n}\selectfont}c
>{\fontseries{sb}\fontshape{n}\selectfont}c
>{\fontseries{b}\fontshape{n}\selectfont}c
>{\fontseries{k}\fontshape{n}\selectfont}c }
& ExtraLight & Light & Regular & Semibold & Bold & Black \\
normal \spr
% italic \spr[\itshape\spA]
% small-caps \spr[\scshape\spA]
capitals \spr[\MakeUppercase\spA]
lining \spr[\spB]
% lining italic \spr[\itshape\spB]
% lining small-caps \spr[\scshape\spB]
old-style \spr[\oldstylenums{\spB}]
% old-style italic \spr[\oldstylenums{\itshape\spB}]
% old-style small-caps \spr[\oldstylenums{\scshape\spB}]
\end{tabular}
\end{document}
Binary file added doc/latex/sourcecodepro/sourcecodepro.pdf
Binary file not shown.
186 changes: 186 additions & 0 deletions doc/latex/sourcecodepro/sourcecodepro.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
\documentclass[11pt,a4paper,english]{article}
\usepackage{geometry,hologo,hyperref,babel,mdwlist,array,multicol}
\usepackage[default,osf]{sourcesanspro}
\usepackage[scaled=.95]{sourcecodepro}
\hypersetup{
colorlinks,
citecolor=blue,
filecolor=blue,
linkcolor=blue,
urlcolor=blue
}
\newcommand*\file[1]{\href{run:#1.pdf}{#1}}

\title{\bfseries
\Huge sourcecodepro\\
\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.3.\\ \today}

\begin{document}
\maketitle
\begin{multicols}{2}
This package provides the Source Code Pro font in an easy to use way. For \hologo{XeLaTeX} and \hologo{LuaLaTeX} users the original OpenType fonts are used. The entire font family is included. It can also be downloaded from \href{https://github.com/adobe/source-code-pro}{Github}.

\section{Options}
The package has the following options:
\begin{itemize*}
\item \textbf{oldstyle, osf}: use old style numbers.
\item \textbf{lining, nf, lf}: use lining numbers.
\item \textbf{black}: \texttt{\textbackslash bfseries} is black.
\item \textbf{semibold}: \texttt{\textbackslash bfseries} is semibold.
\item \textbf{bold}: \texttt{\textbackslash bfseries} is bold.
\item \textbf{light}: \texttt{\textbackslash mdseries} is light.
\item \textbf{extralight}: \texttt{\textbackslash mdseries} is extra light.
\item \textbf{regular}: \texttt{\textbackslash mdseries} is regular.
\item \textbf{scale, scaled}: Change the scaling with a factor. For example: \texttt{scale=.5}
\item \textbf{default}: Source Code Pro is set as the default font family and as the monotype family.
\item \textbf{nottdefault}: Source Code Pro is not set as monospaced family.
\item \textbf{type1, t1}: Override automatic detection and use the Type 1 fonts.
\item \textbf{opentype, otf}: Override automatic detection and use OpenType fonts.
\end{itemize*}
The following options are enabled by default: lining, proportional, bold and regular.

\section{Commands}
Commands for all weights are also provided for \hologo{XeTeX} and \hologo{LuaTeX} users.
\begin{itemize*}
\item \texttt{\bfseries \textbackslash sourcecodepro}
-- the regular and bold weights.
\item \texttt{\bfseries \textbackslash sourcecodeprolight}
-- the light and semibold weights.
\item \texttt{\bfseries \textbackslash sourcecodeproextreme}
-- the extra light and black weights.
\end{itemize*}

\section{Licence}
Adobe's Source Code Pro typeface is available under the \href{http://scripts.sil.org/OFL}{SIL Open Font License 1.1}.\\
All \LaTeX\ code is available under the \href{http://www.latex-project.org/lppl/}{\LaTeX\ project public license} v1.3 or later.

\section{Specimen}
Simple specimen can be found on page \pageref{sec:specimen}. Full specimen can be \href{http://store1.adobe.com/type/browser/pdfs/1960.pdf}{acquired from Adobe}. Please note that at the moment Source Code Pro doesn’t have italics or small-caps.

\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-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*}
\item SourceCodePro-TLF
\item SourceCodePro-TOsF
\end{itemize*}
With series ‘el’, ‘l’, ‘m’, ‘sb’, ‘b’, ‘k’.% and shapes ‘n’, ‘i’ and ‘sc’.

\section{Version history}
\subsection*{2.3}
\begin{itemize}
\item Fixed errors in weight implementation.
\end{itemize}

\subsection*{2.2}
\begin{itemize*}
\item Weights are now handled with the \href{http://www.ctan.org/pkg/mweights}{mweights} package.
\item Fixed scaling.
\end{itemize*}

\subsection*{2.1}
\begin{itemize*}
\item Added \texttt{nottdefault} option.
\item Fixed issue in which font was set as default sans-serif family instead of the default monospaced family.
\end{itemize*}

\subsection*{2.0}
\begin{itemize*}
\item Merged all \texttt{.sty} files into \texttt{sourcecodepro.sty}.
\item \texttt{default} option now sets the default font family to \texttt{Source Code Pro}, not \texttt{\textbackslash sfdefault}.
\item \texttt{type1}, \texttt{t1}, \texttt{opentype} and \texttt{otf} option added to override automatic detection.
\item Added \texttt{OT1} to \texttt{fontspec} options.
\item Updated fonts to 1.017.
\end{itemize*}

\subsection*{1.02}
\begin{itemize*}
\item Removed \texttt{proportional} and \texttt{tabular} options.
\item Changed the order of \texttt{T1} and \texttt{LY1}.
\item Changed \texttt{lining}/\texttt{nf} behaviour.
\item Redefined \texttt{\textbackslash oldstylenums}.
\end{itemize*}

\section{Known issues}
\begin{itemize*}
\item Using \texttt{\textbackslash liningnums} when the default numbers are oldstyle results in an ‘font feature does not exist’ error and no lining numbers due to lack of the ‘lnum’ font feature.
\end{itemize*}

\newpage
\end{multicols}

\section{Specimen}
At the moment Source Code Pro doesn’t have italics or small-caps.
\label{sec:specimen}
\subsection{OpenType}
\begin{figure}[ht]
\centering
\includegraphics{sourcecodepro-otf-specimen}
\end{figure}
This table can also be found in \file{sourcecodepro-otf-specimen}.

\subsection{Type1}
\begin{figure}[ht]
\centering
\includegraphics{sourcecodepro-type1-specimen}
\end{figure}
This table can also be found in \file{sourcecodepro-type1-specimen}.

\newpage
\section{Opentype features}
\label{sec:otfinfo}

\begin{figure}[ht]
\centering
\begin{tabular}{>{\ttfamily}l l}
aalt & Access All Alternates \\
case & Case-Sensitive Forms \\
ccmp & Glyph Composition/Decomposition \\
dnom & Denominators \\
frac & Fractions \\
mark & Mark Positioning \\
mkmk & Mark to Mark Positioning \\
numr & Numerators \\
onum & Oldstyle Figures \\
ordn & Ordinals \\
salt & Stylistic Alternates \\
sinf & Scientific Inferiors \\
size & Optical Size \\
% ss01 & Stylistic Set 1 - alternate l \\
ss02 & Stylistic Set 2 - alternate a \\
ss03 & Stylistic Set 3 - alternate g \\
% ss04 & Stylistic Set 4 - alternate I \\
subs & Subscript \\
sups & Superscript
\end{tabular}
\end{figure}
\textit{(list generated with otfinfo)}

\end{document}

Loading

0 comments on commit 53b04ee

Please sign in to comment.