mirror of
https://github.com/skishore/makemeahanzi.git
synced 2025-11-01 03:45:51 +08:00
Switch to JSON rendering frontend
This commit is contained in:
14
scripts/convert.py
Executable file
14
scripts/convert.py
Executable file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/python
|
||||
'''
|
||||
Converts a font from one format to another. The input and output formats are
|
||||
inferred based on file names. This script is a thin wrapper around the fontforge
|
||||
Python library, which it depends on.
|
||||
'''
|
||||
|
||||
import fontforge
|
||||
import sys
|
||||
|
||||
if __name__ == '__main__':
|
||||
assert len(sys.argv) == 3, 'Usage: ./convert.py <input> <output>'
|
||||
font = fontforge.open(sys.argv[1])
|
||||
font.generate(sys.argv[2])
|
||||
Reference in New Issue
Block a user