MAMP does not render fonts. Why?

40 Views Asked by At

I literally copy-pasted the W3school example:

  <link href='https://fonts.googleapis.com/css?family=Sofia' rel='stylesheet'>
  <style>
  body {
    font-family: 'Sofia';font-size: 22px;
  }
  </style>

I checked Chrome console. There is a body tag. It has a font-family: Sofia. There is no other font-family rule to compete with it, whatsoever.

I checked the URL. It works, it has the woff2 to the font.

The font does not render on MAMP localhost frontend. Why does it not render?

0

There are 0 best solutions below