kateliev / TypeRig

Proxy API and Font Development Toolkit for FontLab
https://kateliev.github.io/TypeRig/
BSD 3-Clause "New" or "Revised" License
48 stars 3 forks source link

Little Rename Anchors Script Bug #83

Closed alex-phil closed 1 year ago

alex-phil commented 1 year ago

Hi Vassil,

the following line gives me an error:

https://github.com/kateliev/TypeRig/blob/18e80c0fc7aee4eec0bee034d5b18d5ff16c3192/Scripts/TypeRig%20Tools/TR-RenameAnchors.py#L144

And this is because process_glyphs is a set:

https://github.com/kateliev/TypeRig/blob/18e80c0fc7aee4eec0bee034d5b18d5ff16c3192/Scripts/TypeRig%20Tools/TR-RenameAnchors.py#L130

So you will have to replace process_glyphs in line 144 by len(process_glyphs) — or simply use if process_glyphs: in order to check whether the set is empty. Does that make sense? :)

kateliev commented 1 year ago

@alex-phil you are totally right! Thank you!