Skip to content

Source Code Pro and Roboto

Source Code Pro and Roboto font pairing (suggested) · Source Code Pro for headings, Roboto for body text

Category · 5 min read

Sphinx of black quartz, judge my vow

A short standfirst sits under the headline, set in the body font at a slightly larger size.

Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the reader notices the words, not the letters. A heading font may shout; the text font must be comfortable for a thousand words at a time.

Every line is editable: paste your real headline and copy. How to use this page

Source Code Pro and Roboto settings

  • Set Source Code Pro on h1 to h3 at weight 700, line height 1.1, letter spacing -0.02em on the largest sizes.
  • Set Roboto on body text at 17 px with line height 1.7. Use its bold for inline emphasis instead of a third font.
  • Keep headings at least 2× the body size so the two fonts never compete at the same size.
Source Code Pro and Roboto side by side
Source Code ProRoboto
CategoryMonospaceSans-serif
DesignerPaul D. HuntChristian Robertson, ParaType, Font Bureau
Styles16 (variable)18 (variable)
Weights200, 300, 400, 500, 600, 700, 800, 900100, 200, 300, 400, 500, 600, 700, 800, 900
ItalicsYesYes
Width (1–10)87
Stroke (1–10)55
LicenceOFLOFL
Popularity#58#2

CSS for Source Code Pro and Roboto

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">

One request loads both families.

More fonts that pair with Source Code Pro

All fonts that pair with Source Code Pro →

More fonts that pair with Roboto

All fonts that pair with Roboto →