Namespace debug output.

This commit is contained in:
Simon Cozens 2020-08-25 20:18:07 +01:00
parent e2433bd22a
commit b548c5f2e1
2 changed files with 4 additions and 4 deletions

View File

@ -645,7 +645,8 @@ class Builder(object):
def buildDebg(self):
if not "Debg" in self.font:
self.font["Debg"] = newTable("Debg")
self.font["Debg"].data = self.lookup_locations
self.font["Debg"].data = {}
self.font["Debg"].data["io.github.fonttools.feaLib"] = self.lookup_locations
def buildLookups_(self, tag):
assert tag in ("GPOS", "GSUB"), tag

View File

@ -1211,11 +1211,10 @@ class LookupList(BaseTable):
raise ValueError
def toXML2(self, xmlWriter, font):
if "Debg" not in font:
if "Debg" not in font or "io.github.fonttools.feaLib" not in font["Debg"].data:
return super().toXML2(xmlWriter, font)
import json
table = self.table()
s = font["Debg"].data[table]
s = font["Debg"].data["io.github.fonttools.feaLib"][table]
for conv in self.getConverters():
if conv.repeat:
value = getattr(self, conv.name, [])