Source Code Pro font

Fixed-width offshoot of Source Sans for coding, with a dotted zero, slab-footed i and j, and full italics

Source Code Pro is a free monospace font by Paul D. Hunt. It has 16 styles and 1,556 glyphs and covers 29 languages, plus Cyrillic and Greek. It is a variable font with a weight axis. Source Code Pro is licensed under the SIL Open Font License 1.1, so it is free for personal and commercial use. The download is a zip with 2 original font files and the license text.

Monospace 16 styles, variable by Paul D. Hunt OFL

Monospace16 stylesOFL

Source Code Pro

AaBbCc 0123

Set live in Source Code Pro, straight from the font files.
Designer
Paul D. Hunt
Classification
Monospace
License
SIL Open Font License 1.1
Styles
16 8 weights, with italics
Variable font
Yes Weight 200–900
Glyphs
1,556
Languages checked
29 see the list
Last updated
version 1.026;hotconv 1.1.0;makeotfexe 2.6.0

Official source: Google Fonts. Facts on this page were read from the font files and the source’s published data.

Try Source Code Pro

Sample text

Type over the sample to test your own words. The preview loads a Latin subset of Source Code Pro; the download contains the complete files.

Monospace, 16 styles, OFLvafont.com

Source Code Pro

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz

0123456789 & @ ? ! % ( ) { } “ ”

The quick brown fox jumps over the lazy dog, then packs five dozen liquor jugs into a box.

Weights and styles

  • ExtraLight 200Source Code Pro ExtraLightExtraLight Italic
  • Light 300Source Code Pro LightLight Italic
  • Regular 400Source Code Pro RegularItalic
  • Medium 500Source Code Pro MediumMedium Italic
  • SemiBold 600Source Code Pro SemiBoldSemiBold Italic
  • Bold 700Source Code Pro BoldBold Italic
  • ExtraBold 800Source Code Pro ExtraBoldExtraBold Italic
  • Black 900Source Code Pro BlackBlack Italic

Source Code Pro is a variable font: the download holds the whole weight range in one file per style, and the named weights above are positions on that range.

About Source Code Pro

Someone asked for a version of Source Sans for coding applications, and Source Code Pro is the answer. It keeps the sans’s vertical proportions and general forms but gives each glyph an identical width in every weight. Characters that are easy to confuse in code are separated: the zero has a centred dot, the l turns at its foot, and i and j carry slab-like serifs.

The variable font runs a weight axis from 200 to 900, with eight named weights from ExtraLight to Black, each with an italic. There are 1,556 glyphs; Greek, Cyrillic, Vietnamese and the italics arrived with the 2019 update, according to the official notes. Paul D. Hunt designed the family, Teo Tuominen is also credited in the name table, and Adobe releases it under the SIL Open Font License 1.1.

Where Source Code Pro works

Editors and command lines
Equal widths keep indentation straight, while the dotted 0 and the bent l make zero, O, one and l easy to tell apart.
Themes that style by weight
With eight weights and italics, a colour scheme can mark comments in italic and keywords in a heavier cut in one family.
Developer documentation
Inline code and terminal listings match prose in Source Sans, since the monospace keeps the sans’s vertical proportions.
Non-Latin text inside code
Greek, Cyrillic and Vietnamese support keeps comments and string values in other languages at the same fixed width.
Plain-text logs and tables
Timestamps, hashes and number columns line up in console output because every glyph is the same width.

Glyphs

!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~¡¢

Latin and Latin Extended characters in the preview subset; the complete family has 1,556 glyphs. Select a glyph to see its code point.

Language support

The family contains the core letters these languages are written with:

  • English
  • French
  • German
  • Spanish
  • Portuguese
  • Italian
  • Dutch
  • Swedish
  • Norwegian
  • Danish
  • Finnish
  • Icelandic
  • Catalan
  • Turkish
  • Polish
  • Czech
  • Slovak
  • Hungarian
  • Romanian
  • Croatian
  • Slovenian
  • Lithuanian
  • Latvian
  • Estonian
  • Vietnamese
  • Russian
  • Ukrainian
  • Bulgarian
  • Greek

Writing systems with glyphs in the family besides Latin: Cyrillic, Greek. Listed as scripts, not as a promise for every language written in them.

Character sets found in the files: cyrillic, cyrillic-ext, greek, latin, latin-ext, vietnamese. The language list is a check of required letters against the font, not a promise of typographic quality in each language.

License

SIL Open Font License 1.1Copyright 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.

What the license allows

  • Use the fonts in personal and commercial work, in print, on the web and in apps.
  • Modify the fonts and build new versions from them.
  • Redistribute the fonts, on their own or bundled with software, as long as the license text and copyright notice go with them.

Conditions

  • The fonts cannot be sold by themselves.
  • A modified version must stay under the same license and cannot use a Reserved Font Name without the copyright holder's permission.
  • The authors' names cannot be used to promote a modified version without permission.

A short summary, not legal advice. The license text decides: read the full OFL text. A copy is included in the download.

Fonts that pair with Source Code Pro

Source Sans 3 Sans Serif

Source Sans is the face this monospace was adapted from. Set prose in it and code in Source Code Pro, and the page reads as a single system.

Suggestions follow simple rules: a contrasting classification and enough weights to carry body text. Treat them as a starting point.

Use Source Code Pro on the web

Download the family, put the files on your own server and declare them in CSS. Please do not link to files on vafont.com: the previews here are subsets and their addresses change.

CSS, self-hosted
@font-face {
  font-family: "Source Code Pro";
  src: url("/fonts/SourceCodePro-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Code Pro";
  src: url("/fonts/SourceCodePro-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Source Code Pro", monospace;
}

Or load it from the official source. Google Fonts serves Source Code Pro with this markup:

HTML, Google Fonts

Things to know

Axis default is 200
Out of the box the variable font sits at ExtraLight. In CSS or an editor that ignores named instances, ask for 400 or another weight directly.
Separate roman and italic
Two variable files ship, upright and italic, each spanning weights from 200 up to 900.
The name Source is reserved
Source is an Adobe trademark and a reserved font name, so a modified version has to be published under another name.

FAQs

Is Source Code Pro allowed in commercial software?

Yes, at no cost, under the SIL Open Font License 1.1. You may modify and redistribute it too. The font files cannot be sold alone, and derivatives keep the license and may not use the reserved name Source.

Who is the designer of Source Code Pro?

Paul D. Hunt designed it and Adobe publishes it. Teo Tuominen is also credited in the name table.

How many styles does Source Code Pro come in?

Sixteen. There are eight weights between ExtraLight 200 and Black 900, and every one has an italic.

Does Source Code Pro have a weight axis?

Yes. It is variable in weight from 200 to 900, with roman and italic shipped as two separate files.

What languages does Source Code Pro handle?

Latin-script languages such as English, German, Polish, Turkish and Vietnamese, plus Russian, Ukrainian and Bulgarian in Cyrillic, and Greek. Greek, Cyrillic and Vietnamese arrived with the 2019 update.

Which text font goes with Source Code Pro?

Source Sans 3, since the monospace was built as a companion to Source Sans and shares its proportions.

What fonts are similar to Source Code Pro?

Free monospace fonts close to Source Code Pro in use include Geist Mono, Roboto Mono, IBM Plex Mono, Fira Mono and DM Mono. Each is listed on this page with the uses it shares.

Collections with Source Code Pro

Fonts similar to Source Code Pro

These free monospace families are the closest to Source Code Pro in the library by classification and shared uses. Use them as alternatives when you need a different weight range or a slightly different tone.

  • Geist Mono 18 styles, variable; also used for interfaces, code and tech.
  • Roboto Mono 14 styles, variable; also used for interfaces, code and tech.
  • IBM Plex Mono 14 styles; also used for interfaces, code and tech.
  • Fira Mono 3 styles; also used for interfaces, code and tech.
  • DM Mono 6 styles; also used for interfaces, code and tech.
  • B612 Mono 4 styles; also used for interfaces, code and tech.

Other monospace families, ordered by shared uses. All monospace fonts