Is there a faster way to delete glyphs?

When using del(Font.glyphs[gName]) in a Python loop over a list of let’s say 8k glyphnames, the execution takes forever (we just killed Glyphs each time, so we don’t know for how long it would be). With Python is there a more effective/performant way to do that?

Wrap the loop in

Font.disableUpdateInterface()
…
Font.enableUpdateInterface()
2 Likes

Ahhh. Thank you. That was it. I always forget that Glyphs what’s to update its interface during such operations. :person_facepalming: