the table is for debugging, so let's make it easier for human-beings to read its content when dumped to TTX
18 lines
443 B
Python
18 lines
443 B
Python
import json
|
|
|
|
from . import DefaultTable
|
|
|
|
|
|
class table_D__e_b_g(DefaultTable.DefaultTable):
|
|
def decompile(self, data, ttFont):
|
|
self.data = json.loads(data)
|
|
|
|
def compile(self, ttFont):
|
|
return json.dumps(self.data).encode("utf-8")
|
|
|
|
def toXML(self, writer, ttFont):
|
|
writer.writecdata(json.dumps(self.data, indent=2))
|
|
|
|
def fromXML(self, name, attrs, content, ttFont):
|
|
self.data = json.loads(content)
|