Do not emit MVAR if there are no entries in the variation store
This commit is contained in:
parent
6d07d48846
commit
7ed4c43395
@ -414,6 +414,7 @@ def _add_MVAR(font, model, master_ttfs, axisTags):
|
||||
rec.VarIdx = varIdx
|
||||
records.append(rec)
|
||||
|
||||
if len(records) > 0 :
|
||||
assert "MVAR" not in font
|
||||
MVAR = font["MVAR"] = newTable('MVAR')
|
||||
mvar = MVAR.table = ot.MVAR()
|
||||
|
Loading…
x
Reference in New Issue
Block a user