Namespace debug output.
This commit is contained in:
parent
e2433bd22a
commit
b548c5f2e1
@ -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
|
||||
|
@ -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, [])
|
||||
|
Loading…
x
Reference in New Issue
Block a user