mirror of
https://github.com/JetBrains/JetBrainsMono.git
synced 2024-09-11 17:15:35 +03:00
10 lines
270 B
Python
10 lines
270 B
Python
import glob
|
|
import os
|
|
from fontTools.ttLib import TTFont
|
|
|
|
for filepath in glob.iglob('fonts/variable/*.ttf'):
|
|
f = TTFont(filepath)
|
|
f.flavor = 'woff2'
|
|
print('INFO:fontTools.ttLib.woff2:Building WOFF2 for ' + filepath)
|
|
f.save(os.path.splitext(filepath)[0] + '.woff2')
|