Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from robofab.world import *
- f = CurrentFont()
- def flat_list(*n):
- stringer = ''
- if len(n) == 1:
- stringer += str(n[0])
- return stringer
- for i in n:
- stringer += '_%s' %i
- return stringer[1:]
- hash = {}
- for i in f.selection:
- if f[i].components:
- hash[f[i].name] = []
- for j in f[i].components:
- hash[f[i].name].append(j.baseGlyph)
- for i in hash:
- print '%s=%s' %(flat_list(*hash[i]), i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement