NameError: name 'kerningForPair' is not defined

looks like kerningForPair no longer works?

Traceback (most recent call last):
File “”, line 7, in
NameError: name ‘kerningForPair’ is not defined

Edit: I realise it didn’t add Font object to kerningForPair!

Now I’m getting this kerning value:
No matter what pair I put it on?

That’s the system constant for ‘no value’.

So what’s the best way to detect if there is a kerning pair present or not


Just check for anything bigger than maybe 10000.

I always get this system constant 9.22337203685e+18
Although I know definitely that there is a kerning.
(I copied the code line from the example in
What is wrong here?

The code checks for the kerning exception w-e, but you have group kerning @w-@e.

1 Like

Yes, you gotta be careful to check all 4 possibilities: Group to Group, Group to Non-Group, Non-Group to Non-Group and Non-Group to Group.

1 Like