D__e_b_g.py 443 B

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