Splitting kerning class

What would be the best practise to split a kerning class into two, both inheriting the same kerning pairs?

So I kerned a Regular master. LC /o and LC /p for example had so similar outlines on the right side that I added them to the same kerning class. After a while, I needed to add another (Black) master. When drawing the Black, I noticed outlines of LC /o and /p can’t be similar anymore like in Regular but need slight adjustments.

I think it would be the least work for me if /o and /p have the same kerning pairs as a starting point and I could just adjust values where necessary.

Another question, is there a way to get a list of all glyphs in a certain kerning classP

In Edit View:

  1. Open Window > Kerning (Cmd-Opt-K)
  2. Select a kern pair.
  3. In the actions menu, choose Show All Glyphs.

It gives you all combinations. You can pick out left or right sides from the pairs displayed.

In Font View:

  1. Switch to list mode.
  2. Sort by left or right group.

You can also filter with a smart filter, but that’s a bit of work.

Thanks Rainer, that’s clear.

Any ideas how to split the kerning class?

If I just assign new class for /p, then it loses all kerning pairs. I’d like it to keep the same kerning pairs as when it belonged to /o class.

Just uploaded a new script to the mekkablue scripts:

2 Likes

How can I use this script? I already quit and reopened glyphsapp, uninstalled and re-installed the mekkablue scripts in the plugin manager, but still cannot find »split kerning groups« anywhere.

Script > mekkablue > Split Kerning Groups

I swear it’s there.

When you re-install the mekkablue scripts, make sure you at least do Script > Reload Scripts (available when holding the Option key). I can confirm the script is there.

Ok, after un- and reinstalling the mekkablue scripts one more time it’s there now.
Reloading Scripts with holding Option key was not necessary.
Thank you Sebastian and Rainer!

Wow, this is absolutely wonderful. Thank you so much!

1 Like

For some reason Split Kerning Groups does not work for splitting
new Group »Y« from right group »V«,
whereas it works fine for left group.

but right group seems to work for other groups, e.g. I was able to create a new group from members of right group »A«.

I’ll have a look. Can you send me the file in the meantime? Can be reduced to just the @V group.

Thank you Rainer,
I sent the file via e-Mail.

1 Like

Thanks. In some cases, the GSFont.setKerningForPair() seems to get passed glyph IDs instead of the glyph names it expects. I built in a workaround, so it always gets a glyph name.

1 Like

works now,
thank you!