It’s possible to export variable font without having the addition of cubic node?
I’m trying to write a Drawbot script to export weight animation with the handles and points displayed.
With static export, no points are added but with variable font, the cubic point appears.
Variable fonts are always written with TrueType curves. This already leads to extra nodes (mostly off curve). But converting that back to cubic will most likely add more points. I would write the drawBot Script to run directly in Glyphs, so you can access the outlines directly.
Yeah, that’s what I expected eurf…
I tried to do it in Drawbot because I thought that it would be easier to use axis with an variable font export instead of use interpolation with the Glyphs API
For a reason that I don’t know, for every step in the loop, the process takes more and more time for each loop. I don’t know what causes this progressive slowdown in the script.
Am I doing something wrong ?
I tried to just copy the “B” in a New Font with two masters and it runes in under a second for me too.
I tried to launch it with two other font projects that I have with multiple masters and axes, and the result is the same, each loop is longer than the precedent.
I found what cause this slowndown !
When I remove all Instances in “Export” Panel, the script runes under a second.
The more instances there are in the export panel, the more important the slowdown is.
I had a look at your file. It has not so much to do with the count of the instances bit with the count of open tabs. Close most of them and it will be much quicker.
I improved it so that open tabs will not influence the performance.
But the best “fix” is to put the code between myFont.disableUpdateInterface() and myFont.enableFutureUpdates() calls. That makes the script run in 5 ms for me.