Hi there
I have a small export script that set up some instances, remove some characters and export it.
It fails on the export because it’s not updating the features when exporting that instance.
How do I make an “Update Features” on an instance(not the font only the instance) via script?
I’ve tried this TemporaryVariableInstance_A.customParameters['Update Features'] = True
but that doesn’t work.
My code looks like this:
# Temporary Variable Instance - A (Only the space glyph)
TemporaryVariableInstance_A = GSInstance(type=INSTANCETYPEVARIABLE)
TemporaryVariableInstance_A.name = "Web variable A"
TemporaryVariableInstance_A.customParameters['fileName'] = f"{font.familyName} - A"
TemporaryVariableInstance_A.customParameters['Keep Glyphs'] = "space"
TemporaryVariableInstance_A.customParameters['Update Features'] = True
font.instances.append(TemporaryVariableInstance_A)
print("== Exporting Website - Protected files ==")
print(font.export(Format=VARIABLE, Containers=[PLAIN, WOFF, WOFF2], FontPath=os.path.expanduser(subfolder_paths["Website - Protected files"]), UseProductionNames=UseProductionNames, AutoHint=TTF_AutoHint))
print()