[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:
parent
501353f3df
commit
587b0fbf11
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user