Robofab script stop working?

ttmt's picture

Hi all

I have this simple Robofab script here I wrote to shift the vertical position
of subscript glyphs.

I haven't used it for a while but it has stopped working now.

I get an error message saying - NotImplementedError

Is there a reason why this has started to happen? can I fix it?


from robofab.world import CurrentFont
from robofab.interface.all.dialogs import AskString
#
f = CurrentFont()
#
glyph = [

'a.subs',
'b.subs',
'c.subs',
'd.subs',
'e.subs',
'f.subs',
'g.subs',
'h.subs',
'i.subs',
'j.subs',

]
#
down = int(AskString('Move Down'))
#
for g in glyph:
f[g].move((0,down))
f[g].mark = 140

f.update()

frankrolf's picture

'AskString' has some issues in the latest versions of FL – an easy fix would be removing that call, and assigning an integer to the 'down' variable.
Makes the script less universal, but works for the moment.

scruggsdesign's picture

Try
from robofab.interface.all.dialogs_legacy
instead of
from robofab.interface.all.dialogs

I was having the same problem and found this: http://groups.google.com/group/robofab/browse_thread/thread/3a495566dbe88a0

ttmt's picture

Thanks for that scruggsdesign, it worked. Saved me a load of time.

Syndicate content Syndicate content