Closed jenskutilek closed 8 months ago
I don’t know what is going on, it seems like _open() is called on a file already opened? But a simple fix would to change gn
to:
def gn(n):
if isinstance(n, GSGlyphReference):
return n
return GSGlyphReference(font.glyphs[n])
I fixed the crash, but the math constants are not interpolated (instances not at master locations does not have them at all). This is the first time I encounter File → Generate Instances, so I’m not sure how this is supposed to work. I guess we would need to interpolate the constants, but how do we know Glyphs is generating instances?
It seem that I need to add another call-back that lets you prepare the instances and the interpolation. I’ll have a look.
The callback is already there. I just pushed some stub methods.
Thanks Georg, please let me know when there is something we can use.
It is there already. Have you seen the two (empty) methods that I put at the end of the plugin file? I added it in (c091935e9f7fbb)
Oh, I missed that. Thanks, I guess I need to wait for the next release to be able to actually test that, right?
No. This api is available for some time (2018?)
When I call "File > Generate Instances", the plugin crashes with this message: