I've been attempting to change my font using the font-face rule, but it's not working. Every time I try, it displays an error saying "@font-face declaration doesn't follow the fontspring bulletproof syntax". I've searched online for a solution but haven't found one yet. Here's the code I'm using:
@font-face {
font-family: "MyFont";
src: url(fonts/Benne-Regular.ttf) format("truetype");
}
h1 {
font-family: "MyFont";
}
Can anyone help me figure out what I'm doing wrong?