WOFF builder

This commit is contained in:
minjaesong
2026-03-02 12:35:50 +09:00
parent cce9d62bd1
commit db327d8357
7 changed files with 37 additions and 7 deletions

10
OTFbuild/otf2woff2.py Executable file
View 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}")