[varLib] temporary workaround to make MVAR tests pass

https://travis-ci.org/fonttools/fonttools/jobs/260671300#L2519-L2519

Behdad will revert this later
This commit is contained in:
Cosimo Lupo 2017-08-03 17:57:16 +01:00
parent d89fcf93bc
commit b5ab6d3af3

View File

@ -643,6 +643,9 @@ def _add_MVAR(font, model, master_ttfs, axisTags):
mvar.Version = 0x00010000
mvar.Reserved = 0
mvar.VarStore = store_builder.finish()
# XXX these should not be hard-coded but computed automatically
mvar.ValueRecordSize = 8
mvar.ValueRecordCount = len(records)
mvar.ValueRecord = sorted(records, key=lambda r: r.ValueTag)