Being able to implement a variable font for the first time.
What challenges did you encounter, and how did you overcome them?Faced an issue where the fonts default style was italics, i tried changing the font style but it still didn't work.
What specific areas of your project would you like help with?I think there might be an issue with the way i set the variable fonts. Here is the _font.scss code for reference:
@font-face { font-family: "Figtree"; src: url(./assets/fonts/Figtree-VariableFont_wght.ttf) format("truetype-variations"); font-weight: 100 900; font-style: normal; font-display: swap; }
// This is where i think the problem comes from @font-face { font-family: "Figtree"; src: url(./assets/fonts/Figtree-Italic-VariableFont_wght.ttf) format("truetype-variations"); font-weight: 100 900; font-style: normal; font-display: swap; }