Switch to JSON rendering frontend

This commit is contained in:
Shaunak Kishore
2015-08-26 23:56:42 -04:00
parent c85e70034a
commit 3ee25c4d0c
7 changed files with 80 additions and 119 deletions

14
scripts/convert.py Executable file
View 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])