schriftgestalt / GlyphsSDK

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

GSLayer: `.reinterpolate()` only possible in UI? #75

Open Mark2Mark opened 2 years ago

Mark2Mark commented 2 years ago

This method works when calling it on an UI-opened font, but don’t work when calling it on a font that is opened via GSFont({PATH})

Is this intentional? If so, I move them from the py Unit Tests to the UI Tests. Otherwise those might need a fix?

schriftgestalt commented 2 years ago

I just tried it and it works for me. Do you get an error message?

Mark2Mark commented 2 years ago

Do you see my clean-up branch from my unit test fork?

It’s these 2 tests: with self.subTest("reinterpolate()"): ... and with self.subTest("clear()"): ...

No error message, other than that the tests fail. When I do the same operations from the Macro Panel inside Glyphs with an opened font, those also work, but as I said, not when the font is only loaded via GSFont({PATH}).

EDIT: clear() works. I accidentally called it on the wrong layer. reinterpolate() keeps failing though.