Find erroneous TT hints

Hi, is there any way to find glyphs that have these kinds of broken hints?

there could be a script to open all layers that have detached TT-hints. Or just delete them?

I’d just need to know how to find out if a hint is detached.
hint.width still is > 0

I think there’s a mekkablue script called Find Detached Hints or something. At least there’s one for corner components, which are also hints. Have a look at that.

Ok, I checked, no there isn’t. There was something for corner components, though…

Thank you, Sebastian. However there only seems to be Remove Detached Corner Components, which doesn’t work for hints.

Yes, but you can look at the code in that script, since corner components are also GSHints.

1 Like

You can use hint.originNode. If it is None, it is detached.

1 Like

Thank you, Georg! This is exactly what I was looking for.

I’m late to the party in this thread but I have a script for this - font-scripts/Glyphs/Find TT hints with no origin.py at master · jpt/font-scripts · GitHub

4 Likes