← DM Sans overview

DM Sans Fallback Font CSS

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

Recommended: Arial 0.49% shift
/* Measured line-box delta vs Arial: 0.49% */
@font-face {
  font-family: "DM Sans Fallback";
  src: local("Arial");
  size-adjust: 106.02%;
  ascent-override: 93.56%;
  descent-override: 29.24%;
  line-gap-override: 0.00%;
}

/* Usage */
font-family: "DM Sans", "DM Sans 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 DM Sans finishes downloading.

Other system fallbacks (Helvetica, Georgia, Times New Roman)
System Font size-adjust ascent-override descent-override line-gap-override Measured shift
Arial 106.02% 93.56% 29.24% 0.00% 0.49%
Helvetica 105.09% 94.39% 29.50% 0.00% 0.46%
Georgia 101.53% 97.70% 30.53% 0.00% 1.41%
Times New Roman 117.03% 84.77% 26.49% 0.00% 1.68%
Helvetica
/* Measured line-box delta vs Helvetica: 0.46% */
@font-face {
  font-family: "DM Sans Fallback";
  src: local("Helvetica");
  size-adjust: 105.09%;
  ascent-override: 94.39%;
  descent-override: 29.50%;
  line-gap-override: 0.00%;
}

/* Usage */
font-family: "DM Sans", "DM Sans Fallback", sans-serif;
Georgia
/* Measured line-box delta vs Georgia: 1.41% */
@font-face {
  font-family: "DM Sans Fallback";
  src: local("Georgia");
  size-adjust: 101.53%;
  ascent-override: 97.70%;
  descent-override: 30.53%;
  line-gap-override: 0.00%;
}

/* Usage */
font-family: "DM Sans", "DM Sans Fallback", serif;
Times New Roman
/* Measured line-box delta vs Times New Roman: 1.68% */
@font-face {
  font-family: "DM Sans Fallback";
  src: local("Times New Roman");
  size-adjust: 117.03%;
  ascent-override: 84.77%;
  descent-override: 26.49%;
  line-gap-override: 0.00%;
}

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