class_docstr: Support Graphite Glat tables
class_docstr_tok: ["Support","Graphite","Glat","tables"]
code: def fromXML(self, name, attrs, content, ttFont):
      if name == "version":
          self.version = float(safeEval(attrs["version"]))
          self.scheme = int(safeEval(attrs["compressionScheme"]))
      if name != "glyph":
          return
      if not hasattr(self, "attributes"):
          self.attributes = {}
      gname = attrs["name"]
      attributes = _Dict()
      for element in content:
          if not isinstance(element, tuple):
              continue
          tag, attrs, subcontent = element
          if tag == "attribute":
              k = int(safeEval(attrs["index"]))
              v = int(safeEval(attrs["value"]))
              attributes[k] = v
          elif tag == "octaboxes":
              self.hasOctaboxes = True
              o = _Object()
              o.subboxBitmap = int(attrs["bitmap"], 16)
              o.subboxes = []
              del attrs["bitmap"]
              for k, v in attrs.items():
                  setattr(
                      o, k, int(float(v[:-1]) * 255.0 / 100.0 + 0.5)
                  )
              for element in subcontent:
                  if not isinstance(element, tuple):
                      continue
                  (tag, attrs, subcontent) = element
                  so = _Object()
                  for k, v in attrs.items():
                      setattr(
                          so,
                          k,
                          int(float(v[:-1]) * 255.0 / 100.0 + 0.5),
                      )
                  o.subboxes.append(so)
              attributes.octabox = o
      self.attributes[gname] = attributes
  
imports: from fontTools.misc import sstruct
  from fontTools.misc.fixedTools import floatToFixedToStr
  from fontTools.misc.textTools import safeEval
  from functools import partial
  from .None import DefaultTable
  from .None import grUtils
  import struct
label_desc: Use image node_id 9 for calling the table_G__l_a_t obj's underlying member method code with example usage: obj.fromXML(name, attrs, content, ttFont) without return types