mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-06-09 15:34:05 +09:00
WOFF builder
This commit is contained in:
10
OTFbuild/otf2woff2.py
Executable file
10
OTFbuild/otf2woff2.py
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Convert an OTF/TTF font to WOFF2 format."""
|
||||
import sys
|
||||
from fontTools.ttLib import TTFont
|
||||
|
||||
src, dst = sys.argv[1], sys.argv[2]
|
||||
font = TTFont(src)
|
||||
font.flavor = 'woff2'
|
||||
font.save(dst)
|
||||
print(f" Written {dst}")
|
||||
Reference in New Issue
Block a user