Do not emit MVAR if there are no entries in the variation store

This commit is contained in:
Rob McKaughan 2017-06-20 15:01:23 -07:00
parent 6d07d48846
commit 7ed4c43395

View File

@ -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()