Print status during WOFF2 generation

This commit is contained in:
Naiyer Asif 2022-03-26 13:54:02 +05:30 committed by GitHub
parent bbac791149
commit e02c9cac29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,4 +5,5 @@ 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')