Namespace debug output.
This commit is contained in:
parent
e2433bd22a
commit
b548c5f2e1
@ -645,7 +645,8 @@ class Builder(object):
|
|||||||
def buildDebg(self):
|
def buildDebg(self):
|
||||||
if not "Debg" in self.font:
|
if not "Debg" in self.font:
|
||||||
self.font["Debg"] = newTable("Debg")
|
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):
|
def buildLookups_(self, tag):
|
||||||
assert tag in ("GPOS", "GSUB"), tag
|
assert tag in ("GPOS", "GSUB"), tag
|
||||||
|
@ -1211,11 +1211,10 @@ class LookupList(BaseTable):
|
|||||||
raise ValueError
|
raise ValueError
|
||||||
|
|
||||||
def toXML2(self, xmlWriter, font):
|
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)
|
return super().toXML2(xmlWriter, font)
|
||||||
import json
|
|
||||||
table = self.table()
|
table = self.table()
|
||||||
s = font["Debg"].data[table]
|
s = font["Debg"].data["io.github.fonttools.feaLib"][table]
|
||||||
for conv in self.getConverters():
|
for conv in self.getConverters():
|
||||||
if conv.repeat:
|
if conv.repeat:
|
||||||
value = getattr(self, conv.name, [])
|
value = getattr(self, conv.name, [])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user