I have encountered an issue with using a Google font in my project...
After downloading the font, I included the following CSS code:
@font-face {
font-family: "Work Sans";
src: local("Work Sans"),
url(../src/Fonts/Work_Sans/WorkSans-VariableFont_wght.ttf) format("truetype");
}
However, I received the error message below:
Failed to decode downloaded font: http://localhost:3000/src/Fonts/Work_Sans/static/WorkSans-Regular.ttf
localhost/:1 OTS parsing error: invalid sfntVersion: 1008813135
Can anyone provide insight into what might be causing this error? Thank you for your help!