minor comment

This commit is contained in:
Cosimo Lupo 2023-08-02 14:00:23 +01:00
parent 653bccdb02
commit c9963fd4cd
No known key found for this signature in database
GPG Key ID: DF65A8A5A119C9A8

View File

@ -357,7 +357,6 @@ def _get_cs(charstrings, glyphName, filterEmpty=False):
if filterEmpty: if filterEmpty:
cs.decompile() cs.decompile()
# print(cs.program)
if cs.program == []: # CFF2 empty charstring if cs.program == []: # CFF2 empty charstring
return None return None
elif ( elif (
@ -393,6 +392,7 @@ def merge_charstrings(glyphOrder, num_masters, top_dicts, masterModel):
masterSupports = [] masterSupports = []
default_charstrings = top_dicts[0].CharStrings default_charstrings = top_dicts[0].CharStrings
for gid, gname in enumerate(glyphOrder): for gid, gname in enumerate(glyphOrder):
# interpret empty non-default masters as missing glyphs from a sparse master
all_cs = [ all_cs = [
_get_cs(td.CharStrings, gname, i != 0) for i, td in enumerate(top_dicts) _get_cs(td.CharStrings, gname, i != 0) for i, td in enumerate(top_dicts)
] ]