From 3865c6b26935522040e5fa7d74e1e86f6850415e Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Wed, 23 Sep 2020 11:43:54 +0100 Subject: [PATCH] Update Builder subclass to stash new debug information See fonttools/fonttools#2065 --- lib/silfont/scripts/psfbuildfea.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/silfont/scripts/psfbuildfea.py b/lib/silfont/scripts/psfbuildfea.py index 6a76d32..cdc8336 100755 --- a/lib/silfont/scripts/psfbuildfea.py +++ b/lib/silfont/scripts/psfbuildfea.py @@ -10,6 +10,7 @@ from fontTools import configLogger from fontTools.ttLib import TTFont from fontTools.ttLib.tables.otTables import lookupTypes +from fontTools.feaLib.lookupDebugInfo import LookupDebugInfo from silfont.core import execute @@ -40,6 +41,11 @@ def buildLookups_(self, tag): latelookups.append(bldr) else: bldr.lookup_index = len(lookups) + self.lookup_locations[tag][str(bldr.lookup_index)] = LookupDebugInfo( + location=str(bldr.location), + name=self.get_lookup_name_(bldr), + feature=None, + ) lookups.append(bldr) bldr.map_index = bldr.lookup_index numl = len(lookups)