summaryrefslogtreecommitdiff
path: root/misc/rf-scripts/RemoveLocalGuides.py
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2017-08-22 10:05:20 +0300
committerRasmus Andersson <rasmus@notion.se>2017-08-22 12:23:08 +0300
commit3b1fffade1473f20f2558733fbd218f4580fc7c3 (patch)
treeea4f80b43b08744d493bb86ab646444ec04ddc7f /misc/rf-scripts/RemoveLocalGuides.py
downloadinter-3b1fffade1473f20f2558733fbd218f4580fc7c3.tar.xz
Initial public commitv1.0
Diffstat (limited to 'misc/rf-scripts/RemoveLocalGuides.py')
-rw-r--r--misc/rf-scripts/RemoveLocalGuides.py15
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"