schriftgestalt / GlyphsSDK

Scripting SDK for Glyphs
Apache License 2.0
89 stars 37 forks source link

fix UFO font export #58

Closed pkolchanov closed 2 years ago

pkolchanov commented 2 years ago

This PR fixes local variable 'Exporter' referenced before assignment issue for UFO font export.

Screen Shot 2021-12-05 at 19 03 51
schriftgestalt commented 2 years ago

The wrong variable it a good find. Thanks. But the different method changes the behavior.

The old method would write all masters and the one you used will fail if the file has more than one master. I prefer the old behavior. As it is an "export" and not a "save" operation.