<<

sourcecodepro Adobe’s Source Pro for LATEX

Silke Hofstra, @slxh.nl Documentation for sourcecodepro v2.7. January 13, 2018

This package provides the 2 Commands font in an easy to use way. For X LAE TEX and LuaLATEX users the original OpenType fonts from GitHub are Commands for all weights are also provided for used. The entire font family is included. X TE EX and LuaTEX users. This package is also available on GitHub. • \sourcecodepro – the regular and bold weights. 1 Options • \sourcecodeprolight – the light and semibold weights. • \sourcecodeproextreme – the extra The package has the following options: light and black weights. • oldstyle, osf: use old style numbers. • lining, nf, lf: use lining numbers. • black: \bfseries is black. 3 Licence • semibold: \bfseries is semibold. • bold: \bfseries is bold. Adobe’s Source Code Pro typeface is available un- • light: \mdseries is light. der the SIL Open Font License 1.1. • extralight: \mdseries is extra light. All LATEX code is available under the LATEX project • regular: \mdseries is regular. public license v1.3 or later. • scale, scaled: Change the scaling with a factor. For example: scale=.5 • ligatures: Change the ligatures used. For 4 Specimen example: ligatures=TeX • default: Source Code Pro is set as the de- Simple specimen can be found on page 3. Full fault font family and as the monotype fam- specimen can be acquired from Adobe. Please ily. note that at the moment Source Code Pro doesn’t • nottdefault: Source Code Pro is not set as have small-caps. monospaced family. • type1, t1: Override automatic detection and use the Type 1 fonts. • , otf: Override automatic detec- 5 OpenType tion and use OpenType fonts. The OpenType fonts have many features, includ- The following options are enabled by default: lin- ing old style numerals (1 6 9) and stylistic alter- ing, proportional, bold and regular. natives (a g).

1 5.1 Features 2.2

A complete list of available font features is avail- • Weights are now handled with the able on page 4. More information on how to use mweights package. font features can be found in the fontspec docu- • scaling. mentation. 2.1 6 Type1 • Added nottdefault option. • Fixed issue in which font was set as de- fault sans-serif family instead of the default The following Type1 font families are included: monospaced family. • SourceCodePro-TLF • SourceCodePro-TOsF 2.0

With series ‘el’, ‘l’, ‘m’, ‘mb’, ‘sb’, ‘b’, ‘k’ and shapes • Merged all .sty files into sourcecode- ‘n’ and ‘i’. pro.sty. • default option now sets the default font family to Source Code Pro, not \sfde- 7 Version history fault. • type1, t1, opentype and otf option added to override automatic detection. 2.7 • Added OT1 to fontspec options. • Make the ligatures for the OpenType fonts • Updated fonts to 1.017. configurable with the ligatures option. • Update the fonts to Roman v2.030 and Italic 1.02 v1.050. • Generate fonts without f-ligatures. • Removed proportional and tabular options. • Changed the order of T1 and LY1. 2.6 • Changed lining/nf behaviour. • Redefined \oldstylenums. • Modified the \liningnums to accomodate for the missing lnum feature. 8 Known issues

2.5 Issues can be reported on GitHub. • Updated the fonts to 2.010R-ro/1.030R-it.

2.4 • Added the italic fonts (beta v1.002). • Added the fixed medium font (v1.020). • Implemented the medium font.

2.3 • Fixed errors in weight implementation.

2 9 Specimen

At the moment Source Code Pro doesn’t have italics or small-caps.

9.1 OpenType

ExtraLight Light Regular Medium Semibold Bold Black normal abcde abcde abcde abcde abcde abcde abcde italic abcde abcde abcde abcde abcde abcde abcde capitals ABCDE ABCDE ABCDE ABCDE ABCDE ABCDE ABCDE lining 01469 01469 01469 01469 01469 01469 01469 liningitalic 01469 01469 01469 01469 01469 01469 01469 old-style 01469 01469 01469 01469 01469 01469 01469 old-styleitalic 01469 01469 01469 01469 01469 01469 01469

This table can also be found in sourcecodepro-otf-specimen.

9.2 Type1

ExtraLight Light Regular Medium Semibold Bold Black normal abcde abcde abcde abcde abcde abcde abcde italic abcde abcde abcde abcde abcde abcde abcde capitals ABCDE ABCDE ABCDE ABCDE ABCDE ABCDE ABCDE lining 01469 01469 01469 01469 01469 01469 01469 lining italic 01469 01469 01469 01469 01469 01469 01469 old-style 01469 01469 01469 01469 01469 01469 01469 old-style italic 01469 01469 01469 01469 01469 01469 01469

This table can also be found in sourcecodepro-type1-specimen.

3 10 Opentype features

The following font features are avalable in the font:

case Case-Sensitive Forms ccmp Glyph Composition/Decomposition cv01 Character Variants 1 - simple a cv02 Character Variants 2 - simple g cv04 Character Variants 4 - serifed i cv06 Character Variants 6 - Sami Ŋ cv07 Character Variants 7 - cursive β cv08 Character Variants 8 - cursive θ cv09 Character Variants 9 - cursive φ cv10 Character Variants 10 - Serbian б cv11 Character Variants 11 - Cyrillic breve [˘] cv12 Character Variants 12 - [0] 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 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 - typographic alternates [-,*] ss02 Stylistic Set 2 - simple a, cursive β ss03 Stylistic Set 3 - simple g, cursive θ, Serbian б ss04 Stylistic Set 4 - serifed i ss05 Stylistic Set 5 - Sami Ŋ, cursive φ ss06 Stylistic Set 6 - slashed dollar sign [$] ss07 Stylistic Set 7 - alternate numeral one [1] subs Subscript sups Superscript zero Slashed Zero

4