GlyphsSDK icon indicating copy to clipboard operation
GlyphsSDK copied to clipboard

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

Open Mark2Mark opened this issue 3 years ago • 2 comments

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?

Mark2Mark avatar Aug 22 '22 18:08 Mark2Mark

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

schriftgestalt avatar Aug 22 '22 18:08 schriftgestalt

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.

Mark2Mark avatar Aug 23 '22 11:08 Mark2Mark