2 from fontTools
.ttLib
import TTFont
3 from fontTools
.ttLib
.tables
.DefaultTable
import DefaultTable
6 print("usage: python addTable.py input.ttf output.ttf Wasm.bin")
9 font
= TTFont(sys
.argv
[1])
11 wasm_table
= DefaultTable("Wasm")
12 wasm_table
.data
= open(sys
.argv
[3], "rb").read()
14 font
["Wasm"] = wasm_table
16 font
.save(sys
.argv
[2])