parent
4ad659a608
commit
1023a80d39
4 changed files with 18 additions and 29 deletions
@ -1,16 +0,0 @@ |
||||
import sys |
||||
from fontTools.ttLib import TTFont |
||||
from fontTools.ttLib.tables.DefaultTable import DefaultTable |
||||
|
||||
if len(sys.argv) == 1: |
||||
print("usage: python addTable.py input.ttf output.ttf Wasm.bin") |
||||
sys.exit(1) |
||||
|
||||
font = TTFont(sys.argv[1]) |
||||
|
||||
wasm_table = DefaultTable("Wasm") |
||||
wasm_table.data = open(sys.argv[3], "rb").read() |
||||
|
||||
font["Wasm"] = wasm_table |
||||
|
||||
font.save(sys.argv[2]) |
Loading…
Reference in new issue