I am currently working on incorporating the Rubik Font into my project:
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Rubik&display=swap" rel="stylesheet">
body {
font-family: 'Rubik', sans-serif;
font-weight: 500; // or 400, or any, whatever
}
You can also check out a live demo using this Stackblitz link.
Despite my efforts, when I inspect it in Chrome Devtools, the computed font always appears as Rubik Light
, regardless of the weight specified. I even tried downloading and using it locally without success.
How can I ensure that the font being displayed is just Rubik
and not Rubik Light
? Bold text with Rubik Light looks quite odd.
I'm struggling to figure out if the issue lies with the font itself.