root/trunk/Documentation/TypoTechnica 2005/scripts Folder/Paulus - bricks/hint delete.py

Revision 1, 368 bytes (checked in by erik, 3 years ago)

initial import

  • Property svn:executable set to
Line 
1
2 # deletes horizontal hint with position -135 in all glyphs
3
4 # myGlyph = fl.glyph
5
6 myFont = fl.font
7 myGlyphs = fl.font.glyphs
8
9 for g in range (0,len(myGlyphs)):
10         myGlyph = myFont[g]
11         myHints = myGlyph.hhints
12         for h in range(0,len(myHints)):
13                 # print myGlyph, len(myHints)
14                 if myHints[h].position == -124:
15                         del myHints[h]
16                         fl.UpdateGlyph(-1)
17                         break
18 print "done"
Note: See TracBrowser for help on using the browser.