mirror of
https://github.com/JetBrains/JetBrainsMono.git
synced 2024-08-16 19:50:28 +03:00
Implement script to generate variable webfonts
This commit is contained in:
parent
908603ca44
commit
bb8a9cd188
8
scripts/generate_variable_webfonts.py
Normal file
8
scripts/generate_variable_webfonts.py
Normal file
@ -0,0 +1,8 @@
|
||||
import glob
|
||||
import os
|
||||
from fontTools.ttLib import TTFont
|
||||
|
||||
for filepath in glob.iglob('fonts/variable/*.ttf'):
|
||||
f = TTFont(filepath)
|
||||
f.flavor = 'woff2'
|
||||
f.save(os.path.splitext(filepath)[0] + '.woff2')
|
Loading…
Reference in New Issue
Block a user