I'm tring to import Rubik's all variations but I've some issue. I would like to have all rubik's variation in the same url (italic and weight) and according with this google's article and this from css-triks I wrote my url using periods and this seem to work if I import only weight's axis
https://fonts.googleapis.com/css2?family=Rubik:[email protected]&display=swap
but when I add the italic axis to url google return me "400 error: missing font family"
https://fonts.googleapis.com/css2?family=Rubik:ital,[email protected],400..900&display=swap
It seem like italic doesn't have all variation though the Rubik's type tester allow to use italic.
So what I'm doing wrong?
I would have all rubik's variation (italic and weight) in the same url. I've wrote the url following the instructions in a google fonts's article but it doesn't work.
Apparently, the
ital
feature currently requires two load 2 font files.Maybe related to the fact, it provides only 2 values:
0 (off/normal) and 1 (on/italic)
So it's not a real design axis providing interpolated values like the similar
slnt
(slant) axis.However you can use this URL:
https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900
I highly recommend this post:
How To Get The Variable Font Links From Google Fonts?
– it also contains a list of google font URLs