minor comment
This commit is contained in:
parent
653bccdb02
commit
c9963fd4cd
@ -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)
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user