File: RemoveLocalGuides.py

package info (click to toggle)
fonts-inter 4.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 55,840 kB
  • sloc: python: 9,184; ansic: 3,776; javascript: 762; makefile: 637; sh: 466; xml: 22
file content (15 lines) | stat: -rw-r--r-- 369 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"