Someone has knowledge of the existence or development of any script that produces shadows, similar to that action effect in FontLab, to generate a shadow and do an overlap to eliminate the main shape:
f = fl.font
if f == None:
exit
def process(f, g, index):
global randomize
if g == None:
return
g1 = Glyph(g)
g2 = Glyph(g)
s = Point(40, -40)
fl.SetUndo(index)
g.Shift(s)
g1.Distance(10, 10, 2)
g.RemoveOverlap()
g.Bsubtract(g1)
g.Badd(g2)
fl.UpdateGlyph(index)
del g1
del g2
font = fl.font
glyphs = font.glyphs
for index in range(len(glyphs)):
if fl.Selected(index) and index != fl.iglyph :
process(font, glyphs[index], index)
fl.UpdateGlyph(index)