Closing unlocked kerning pairs

Hello everyone, is any script to close all the unlocked kerning pairs? thanks in advance.

Do you need it to be a script?

you can do it manually from the Kerning panel. First run “Compress Kerning” from the gear button. Then filter for glyph kerning and delete all of the remains entries.

Does someone maybe have a script that shows only exceptions where both locks are unlocked ?

Try this in the Macro Window:

tabText=""
currentMasterID = Font.selectedFontMaster.id
masterKerning = Font.kerning[currentMasterID]
for leftSide in masterKerning:
	if leftSide[0]!="@":
		for rightSide in masterKerning[leftSide]:
			if rightSide[0]!="@":
				tabText+="/%s/%s " % (
					Font.glyphForId_(leftSide).name, 	
					Font.glyphForId_(rightSide).name,
				)
Font.newTab(tabText.strip())
2 Likes

You rock !

1 Like