This little script is handy Georg, but I am wondering how I can specify which instance I want to draw, rather than cycle through all instances. I can’t figure out how to specify a weight or width value, or perhaps an interpolation value. Is this possible?
I remember this used to work in previous versions but it is broken in 2.5. Did anything change? I now get the following error:
<untitled>:11: UninitializedDeallocWarning: leaking an uninitialized object of type GSInterpolatio nFontProxy
Traceback (most recent call last):
File "<untitled>", line 11, in <module>
AttributeError: 'GSInterpolationFontProxy' object has no attribute 'initWithFont_instance_'
I’m working on a DrawBot script and I used .interpolatedFont. On one computer this worked fine, but on another I got the following error (apologies for formatting): File "GlyphsApp/GlyphsApp/__init__.py", line 3634, in <lambda> File "GlyphsApp/GlyphsApp/__init__.py", line 3632, in Instance_FontObject TypeError: 'NSKVONotifying_GSFont' object is not callable
If I use .interpolatedFontProxy it works again. As long as something works I don’t really care, but I thought that was weird.
I have version 2.5.1 (1140) on both computers. I work primarily on an iMac and also have a MacBook Pro that I don’t use often. I was updating everything on the MacBook yesterday and noticed I didn’t have the recommended modules. That button in the preferences window wasn’t working for the life of me so I downloaded and installed all three manually. Is it possible that is to blame?
Edit: I just checked again and .interpolatedFont doesn’t work on my iMac anymore, only .interpolatedFontProxy. I think the only thing that changed was I updated the DrawBot plugin.