[merge] Use merger-private namespace in TTFont.__dict__

This commit is contained in:
Behdad Esfahbod 2021-12-16 13:32:11 -07:00
parent e6719f4dad
commit deaf30d17c
2 changed files with 3 additions and 3 deletions

View File

@ -56,8 +56,8 @@ class Merger(object):
def _openFonts(self, fontfiles):
fonts = [ttLib.TTFont(fontfile) for fontfile in fontfiles]
for font,fontfile in zip(fonts, fontfiles):
font.fontfile = fontfile
font.name = font['name'].getDebugName(4)
font._merger__fontfile = fontfile
font._merger__name = font['name'].getDebugName(4)
return fonts
def merge(self, fontfiles):

View File

@ -182,7 +182,7 @@ def merge(self, m, tables):
for i,(table,dups) in enumerate(zip(tables, m.duplicateGlyphsPerFont)):
if not dups: continue
if table is None or table is NotImplemented:
log.warning("Have non-identical duplicates to resolve for '%s' but no GSUB. Are duplicates intended?: %s", m.fonts[i].name, dups)
log.warning("Have non-identical duplicates to resolve for '%s' but no GSUB. Are duplicates intended?: %s", m.fonts[i]._merger__name, dups)
continue
synthFeature = None