[merge] Report font name instead of number
Yay!
This commit is contained in:
parent
23f00306b1
commit
0f101663aa
@ -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):
|
||||
|
@ -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
|
||||
)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user