Safari renders my font-weight: 400 text very thin, versus the same on firefox. This is Firefox:
This is safari:
Surprisingly, this even happens on the Google Fonts site. Check out the difference between these two paragraphs, with the same styles:
Changing font-weight: 400 to font-weight: 300 in Safari actually makes the text significantly thicker. It's only a font-weight of 400 that causes the issue. This is the case in the Google Fonts editor too, where you can change the weight between 400 and 100, and notice no difference.
Now that I type this up, I realize that maybe this is an actual bug in the font or something, and that this should maybe be reported to Google Fonts instead, but since it works in Firefox and Chrome, I'm not so sure.




Currently, google's API uses some user agent detection (a.k.a browser sniffing) to provide backwards compatibility (for browsers that don't support variable fonts).
Unfortunately, this doesn't work very well:
some Browsers like Opera (flawlessly supporting VF) will also receive static fonts.
Besides, the UI is not very helpful to get the correct URL including all design axes.
So you need to insert the correct range selector query parameters like so:
https://fonts.googleapis.com/css2?family=+Inter+:+slnt+,+wght(design axis names)+@+-10..0+,+100..900(design axis range values)Workaround: Copy the variable
@font-facerules manuallyOpen the API URL in firefox:
https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,slnt,wdth,wght,GRAD,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,[email protected],-10..0,25..151,100..1000,-200..150,323..603,25..135,649..854,-305..-98,560..788,416..570,528..760
Copy the returned rules in your css file:
Further reading: Getting Variable Fonts from Google Fonts