HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Users/fred/anaconda3/Lib/site-packages/fontTools/ttLib/tables/D__e_b_g.py
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)