Copy left kern group to right kern group

In Font list view is there a way to copy just the Left Kern Group column contents and paste it to the Right Kern Group?
I can copy and Paste Special but this only copies and pastes like to like – so left kern group to left kern group, useful across font master files. But I’d like to copy all the kern groups from the Left to the Right.

thanks
J

That would be a job for a script.

Why do you need it?

because the font I’m working on requires each glyph to be its own kern. I’ve entered all the groups for the LeftKerningGroup and i want to copy these all to the rightKerningGroup. As a list view I thought it would simple – like working with a spreadsheet. Guess not. So yes, can look at a script and am working through how to do this (about time I learnt :slight_smile: but don’t understand how to copy and paste a value from one to the other. Python isn’t Sinclair BASIC:)

I can do this

for myGlyph in Glyphs.font.glyphs:
	print ( myGlyph.leftKerningGroup)

Ideally I want to

for myGlyph in Glyphs.font.glyphs:
	copy ( myGlyph.leftKerningGroup)
	paste ( myGlyph.rightKerningGroup)

Guess it isn’t that obvious :slight_smile:

J

Almost:

for myGlyph in Glyphs.font.glyphs:
    myGlyph.rightKerningGroup = myGlyph.leftKerningGroup

Damn. So copy and paste it basically to say the second equals the first.
cheers Georg!

This means assign the right value to the left variable.

1 Like