1import json 2 3from . import DefaultTable 4 5 6class table_D__e_b_g(DefaultTable.DefaultTable): 7 def decompile(self, data, ttFont): 8 self.data = json.loads(data) 9 10 def compile(self, ttFont): 11 return json.dumps(self.data).encode("utf-8") 12 13 def toXML(self, writer, ttFont): 14 writer.writecdata(json.dumps(self.data)) 15 16 def fromXML(self, name, attrs, content, ttFont): 17 self.data = json.loads(content) 18