[merge] Comment
This commit is contained in:
parent
a34749cc16
commit
b9d4795be4
@ -385,9 +385,8 @@ def merge(self, m, tables):
|
|||||||
if m.duplicateGlyphsPerFont[fontIdx].get(oldgid, gid) == gid:
|
if m.duplicateGlyphsPerFont[fontIdx].get(oldgid, gid) == gid:
|
||||||
m.duplicateGlyphsPerFont[fontIdx][oldgid] = gid
|
m.duplicateGlyphsPerFont[fontIdx][oldgid] = gid
|
||||||
else:
|
else:
|
||||||
# char previously mapped to oldgid but already remapped to a different gid,
|
# Char previously mapped to oldgid but already remapped to a different gid.
|
||||||
# save new gid as an alternate
|
# TODO: Try harder to do something about these.
|
||||||
# TODO: try harder to save these
|
|
||||||
log.warning("Dropped mapping from codepoint %#06X to glyphId '%s'", uni, gid)
|
log.warning("Dropped mapping from codepoint %#06X to glyphId '%s'", uni, gid)
|
||||||
|
|
||||||
cmapBmpOnly = {uni: gid for uni,gid in cmap.items() if uni <= 0xFFFF}
|
cmapBmpOnly = {uni: gid for uni,gid in cmap.items() if uni <= 0xFFFF}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user