[varLib] don't overwrite existing feaLib-built 'STAT' table

Fixes https://github.com/googlefonts/fontmake/issues/985 and https://github.com/googlefonts/ufo2ft/issues/723
This commit is contained in:
Cosimo Lupo 2023-03-07 17:26:08 +00:00
parent 501353f3df
commit 587b0fbf11
No known key found for this signature in database
GPG Key ID: DF65A8A5A119C9A8

View File

@ -995,11 +995,11 @@ def build_many(
vf = build(
vfDoc,
master_finder,
exclude=list(exclude) + ["STAT"],
exclude=exclude,
optimize=optimize,
colr_layer_reuse=colr_layer_reuse,
)[0]
if "STAT" not in exclude:
if "STAT" not in vf and "STAT" not in exclude:
buildVFStatTable(vf, designspace, name)
res[name] = vf
return res