When connecting a font in this version

@font-face { font-family: "Lato"; src: url(/fonts/Lato/Lato-Regular.ttf); font-weight: normal; } 

The font does not apply. However, if we transfer to the folder above

 @font-face { font-family: "Lato"; src: url(/fonts/Lato-Regular.ttf); font-weight: normal; } 

Font clings.

The question is, why doesn't it actually apply?

This problem is available only in Chrome on the Windows platform, on the Mac and * nix there is no such thing.

  • Hmm, in chrome under Windows there was such a bug in 2014, but it was fixed. Strange. - Sublihim
  • Try putting a dot at the beginning of the path as an indication of the current src: url(./fonts/Lato/Lato-Regular.ttf); directory src: url(./fonts/Lato/Lato-Regular.ttf); - 1000ISLANDS
  • @ 1000ISLANDS the problem turned out to be in the font that Diz himself provided. I downloaded from another version - it weighs less, but it works everywhere. - DarkVss

1 answer 1

The problem turned out to be in the font that Dis had provided. I downloaded from another version - it weighs less, but it works everywhere.

If you have a problem with the display of the font, I advise you to try to connect with google, and if everything is fine then download another pack.