This is an error I am getting in Chrome and unfortunately searching for it hasn't given me much results. The font itself is appearing correctly. However I still get this error/warning. More specifically, this is the full warning:
"Failed to decode downloaded font: http://localhost:8000/app/fonts/Lato/"
My CSS are these:
@font-face {
font-family:"Lato";
src: url("../fonts/Lato/");
}
html, body {
font-family:'Lato';
}
I just do not understand. The font is applied correctly, but the warning is always there. Trying to use Sans-Serif
makes the font revert to the normal browser font, so that may be it, but I am not sure, and even after searching I have found nothing. Thanks!
EDIT
There are various font files, all from the same family. I am trying to load them all. The font files are .ttf
. I am loading them from a local folder, and there are various font-files, like Lato-Black.ttf
, Lato-Bold.ttf
, Lato-Italic.ttf
etc.