[varLib] Initialize the avar segment map with required default entries (#1014)
* Initialize the avar segment map with required default entries * Set default values only after deciding that a segment map is needed for this axis * Correct dict update call
This commit is contained in:
parent
39ffa74128
commit
1136afd304
@ -94,6 +94,7 @@ def _add_fvar_avar(font, axes, instances):
|
||||
if not axis.map or all(k==v for k,v in axis.map.items()):
|
||||
continue
|
||||
interesting = True
|
||||
curve.update({-1.0: -1.0, 0.0: 0.0, 1.0: 1.0})
|
||||
|
||||
items = sorted(axis.map.items())
|
||||
keys = [item[0] for item in items]
|
||||
|
Loading…
x
Reference in New Issue
Block a user