I downloaded a google font and want to use it in my project...
I added this CSS code
@font-face {
font-family: "Work Sans";
src: local("Work Sans"),
url(../src/Fonts/Work_Sans/WorkSans-VariableFont_wght.ttf) format("truetype");
}
and I get the following error:
Failed to decode downloaded font: http://localhost:3000/src/Fonts/Work_Sans/static/WorkSans-Regular.ttf
localhost/:1 OTS parsing error: invalid sfntVersion: 1008813135
Does anyone know what I'm doing wrong? Thanks in advance!