[merge] Report font name instead of number

Yay!
This commit is contained in:
Behdad Esfahbod 2021-12-16 10:48:10 -07:00
parent 23f00306b1
commit 0f101663aa
3 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ class Merger(object):
fonts = [ttLib.TTFont(fontfile) for fontfile in fontfiles]
for font,fontfile in zip(fonts, fontfiles):
font.fontfile = fontfile
font.name = font['name'].getDebugName(3)
font.name = font['name'].getDebugName(4)
return fonts
def merge(self, fontfiles):

View File

@ -73,7 +73,7 @@ def computeMegaCmap(merger, tables):
format12 = subtable
else:
log.warning(
"Dropped cmap subtable from font [%s]:\t"
"Dropped cmap subtable from font '%s':\t"
"format %2s, platformID %2s, platEncID %2s",
fontIdx, subtable.format, subtable.platformID, subtable.platEncID
)

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 font %d but no GSUB. Are duplicates intended?: %s" % (i + 1, dups))
log.warning("Have non-identical duplicates to resolve for '%s' but no GSUB. Are duplicates intended?: %s" % (m.fonts[i].name, dups))
continue
synthFeature = None