← Roboto overview

Roboto Fallback Font CSS

Paste this @font-face block so Arial matches Roboto’s line height and width before the web font loads (0.31% measured height shift).

Recommended: Arial 0.31% shift
/* Measured line-box delta vs Arial: 0.31% */
@font-face {
  font-family: "Roboto Fallback";
  src: local("Arial");
  size-adjust: 99.78%;
  ascent-override: 92.98%;
  descent-override: 24.47%;
  line-gap-override: 0.00%;
}

/* Usage */
font-family: "Roboto", "Roboto Fallback", sans-serif;
Showing: Overridden Arial

Timber, salt air, and low winter light shaped twelve small studios built along the Oregon coast between 1968 and 1984. Most still stand on their original cedar pilings. Click the toggle button above to check that line wraps stay steady when Roboto finishes downloading.

Other system fallbacks (Helvetica, Georgia, Times New Roman)
System Font size-adjust ascent-override descent-override line-gap-override Measured shift
Arial 99.78% 92.98% 24.47% 0.00% 0.31%
Helvetica 98.90% 93.80% 24.68% 0.00% 0.44%
Georgia 95.55% 97.09% 25.55% 0.00% 1.45%
Times New Roman 110.13% 84.24% 22.17% 0.00% 1.54%
Helvetica
/* Measured line-box delta vs Helvetica: 0.44% */
@font-face {
  font-family: "Roboto Fallback";
  src: local("Helvetica");
  size-adjust: 98.90%;
  ascent-override: 93.80%;
  descent-override: 24.68%;
  line-gap-override: 0.00%;
}

/* Usage */
font-family: "Roboto", "Roboto Fallback", sans-serif;
Georgia
/* Measured line-box delta vs Georgia: 1.45% */
@font-face {
  font-family: "Roboto Fallback";
  src: local("Georgia");
  size-adjust: 95.55%;
  ascent-override: 97.09%;
  descent-override: 25.55%;
  line-gap-override: 0.00%;
}

/* Usage */
font-family: "Roboto", "Roboto Fallback", serif;
Times New Roman
/* Measured line-box delta vs Times New Roman: 1.54% */
@font-face {
  font-family: "Roboto Fallback";
  src: local("Times New Roman");
  size-adjust: 110.13%;
  ascent-override: 84.24%;
  descent-override: 22.17%;
  line-gap-override: 0.00%;
}

/* Usage */
font-family: "Roboto", "Roboto Fallback", serif;