mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-03-07 20:01:52 +09:00
11 lines
235 B
Python
Executable File
11 lines
235 B
Python
Executable File
#!/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}")
|