From 3b1fffade1473f20f2558733fbd218f4580fc7c3 Mon Sep 17 00:00:00 2001 From: Rasmus Andersson Date: Tue, 22 Aug 2017 00:05:20 -0700 Subject: Initial public commit --- misc/rf-scripts/RemoveLocalGuides.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 misc/rf-scripts/RemoveLocalGuides.py (limited to 'misc/rf-scripts/RemoveLocalGuides.py') 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" -- cgit v1.2.3