0
It is known that the sources of the type woff
and woff2
are not supported by all browsers, I am using on my page and on the google console Chrome accuses problems to download the font type woff2
, in Mozilla the kind .woff
.
Could someone please tell me how to use these custom fonts without these types of errors appearing on the console? The ideal is to use only TTF
and EOT
.
Example of Chrome error:
Failed to load Resource: the server responded with a status of 404 (Not Found)
But the source is in the correct directory.
That mistake 404 Not Found is in the file location and not in the support, probably vc pointed the relative path in the wrong way. Put the full path like this
url(http://site/fonts/fonte.woff2)
for example and test.– Guilherme Nascimento
Cool William, I’ll try!
– Munir Baarini
I don’t know if it’s your case, but if you’ve built your class like this it won’t work either:
.className { @font-face { font-family: Helvetica; url(Helvetica.woff); } }
– hugocsl
it didn’t work, my css is in the dist/styles/fonts.css folder and the fonts in the dist/fonts folder, I tried several paths but it doesn’t work.
– Munir Baarini
hugocsl you have any suggestions?
– Munir Baarini