diff options
Diffstat (limited to 'misc/rf-scripts/RemoveLocalGuides.py')
-rw-r--r-- | misc/rf-scripts/RemoveLocalGuides.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/misc/rf-scripts/RemoveLocalGuides.py b/misc/rf-scripts/RemoveLocalGuides.py new file mode 100644 index 000000000..05e1a05b7 --- /dev/null +++ b/misc/rf-scripts/RemoveLocalGuides.py @@ -0,0 +1,15 @@ +# +# Removes local guides from all glyphs +# +if __name__ == "__main__": + font = CurrentFont() + print "Removing local guides from all glyphs of %r" % font + if font is not None: + for g in font: + if 'com.typemytype.robofont.guides' in g.lib: + del(g.lib['com.typemytype.robofont.guides']) + font.update() + else: + print "No fonts open" + + print "Done" |