New to Typophile? Accounts are free, and easy to set up.
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()
10 May 2012 — 1:14pm
'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.
16 May 2012 — 12:12pm
Try
from robofab.interface.all.dialogs_legacyinstead of
from robofab.interface.all.dialogsI was having the same problem and found this: http://groups.google.com/group/robofab/browse_thread/thread/3a495566dbe88a0
18 May 2012 — 7:26am
Thanks for that scruggsdesign, it worked. Saved me a load of time.