From GlyphsApp import currentFont not working in 3.2?

Hey,

That’s is intentionnal or not ?

With last stable version :

from GlyphsApp import currentFont
print(currentFont)

<function currentFont at 0x137abaef0>

With 3.2

from GlyphsApp import currentFont
print(currentFont)

Traceback (most recent call last):
  File "<macro panel>", line 1
ImportError: cannot import name 'currentFont' from 'GlyphsApp' (/Applications/Glyphs 3.2.app/Contents/Scripts310/GlyphsApp/__init__.pyc)

I see. This was a helper method that was removed while cleaning up. The official way to get to the current font is:

font = Glyphs.font
1 Like