def METHOD_NAME(self, name, attrs, content, ttFont):
    if name == "version":
        self.version = float(safeEval(attrs["version"]))
    elif name == "feature":
        fid = attrs["fid"]
        fobj = Feature()
        fobj.flags = int(safeEval(attrs["flags"]))
        fobj.label = int(safeEval(attrs["label"]))
        fobj.default = int(safeEval(attrs.get("default", "0")))
        fobj.index = len(self.features)
        self.features[fid] = fobj
        fobj.settings = {}
        for element in content:
            if not isinstance(element, tuple):
                continue
            tag, a, c = element
            if tag == "setting":
                fobj.settings[int(safeEval(a["value"]))] = int(safeEval(a["label"]))