I set the Custom Parameter “Variable font file name” to rename the VF file, but is is still called …GX.ttf.
You need to add a “Variable Font Setting” in the Exports setting. And add the parameter there.
Can we set the Variable Font Setting through scripting?
Yes.
newInstance = GSInstance.alloc().initWithType_(1)
newInstance.name = "Variable"
Font.instances.append(newInstance)
I’ll add that to the wrapper, then it will be:
newInstance = GSInstance(type=INSTANCETYPEVARIABLE)
newInstance.name = "Variable"
Font.instances.append(newInstance)
3 Likes
Great! So now that we can have variable instances, can we expect to be able to generate them with instance.generate()
just as the static ones?
That is on the list.
1 Like