scripts
This commit is contained in:
parent
30c1755165
commit
0eb9bd892f
2 changed files with 19 additions and 0 deletions
19
misc/glyphs-scripts/delanchors.py
Normal file
19
misc/glyphs-scripts/delanchors.py
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
delanchors = ['top_dd', 'top0315', 'bottom_dd']
|
||||||
|
font = Glyphs.font
|
||||||
|
font.disableUpdateInterface()
|
||||||
|
try:
|
||||||
|
for g in font.glyphs:
|
||||||
|
g.beginUndo()
|
||||||
|
try:
|
||||||
|
for master in font.masters:
|
||||||
|
layer = g.layers[master.id]
|
||||||
|
for aname in delanchors:
|
||||||
|
try:
|
||||||
|
del(layer.anchors[aname])
|
||||||
|
print("del %s in %s", aname, g.name)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
finally:
|
||||||
|
g.endUndo()
|
||||||
|
finally:
|
||||||
|
font.enableUpdateInterface()
|
||||||
Reference in a new issue