JetBrains / JetBrainsMono

JetBrains Mono – the free and open-source typeface for developers
https://jetbrains.com/mono
SIL Open Font License 1.1
10.86k stars 301 forks source link

Generate variable webfonts #519

Open naiyerasif opened 2 years ago

naiyerasif commented 2 years ago

Currently, the variable versions are being published only in the ttf format. It'd be useful if the woff2 files can also be added in the distribution so that I can use them as webfonts (and potentially avoid downloading multiple font files).

jenstroeger commented 2 years ago

Conversion tools don’t work?

naiyerasif commented 2 years ago

@jenstroeger Unfortunately, they are a hit or miss with variable fonts. I have tried them but they miss certain axes while converting.

philippnurullin commented 2 years ago

@RosaWagner Is it possible to add the variable woff2 to the export script?

RosaWagner commented 2 years ago

You can usefonttools ttLib.woff2 for that (in a bash script also if you want to have it at export, gftools builder doesn't do that for variable fonts)

umitseyhan75 commented 2 years ago

I also agree that officially provided variable woff2 fonts in the relase zip would be great.

naiyerasif commented 2 years ago

@philippnurullin @RosaWagner I took a stab at this; PR here https://github.com/JetBrains/JetBrainsMono/pull/535. I am pretty inexperienced at Python so feel free to nitpick on that change 😄

xqdoo00o commented 2 years ago

would like to use woff2 variable fonts too.

philippnurullin commented 1 year ago

Merged the #535. The variable .woff2 files will be available after the next push. Will wait until then, and close if everything is fine.