Glyphs-Scripts icon indicating copy to clipboard operation
Glyphs-Scripts copied to clipboard

Adjust kerning in selected Glyphs only

Open eweracs opened this issue 4 years ago • 1 comments

Hello, forgive me if this is the wrong place to discuss a script, first time using github. I have an issue with this script, as I am using it in combination with copy kerning from caps to sc. I would like to scale the kerning in the sc glyphs only. If I run this script, the kerning is adjusted for all glyphs. Example: I have AVA and AVA as smcp. For my scmp, I would like to scale kerning by 0.85 and then add ten units (identical to my RMX values). If I scale by 0.85 while just selecting my smcp, all the other kerning, for instance for AVA as caps, is scaled. Is there a way of circumventing this and adjusting only in selected glyphs? Thank you!

eweracs avatar Mar 05 '20 15:03 eweracs

Sorry for my delay in answering. The logical problem is that kerning is not tied to a glyph, but pairs of glyphs and kerning groups.

So… what you want is to:

  • duplicate kern pairs cap-cap to sc-sc with a scale factor
  • duplicate kern groups of caps to smallcaps
  • duplicate kern pairs cap-capgroup to sc-scgroup with a scale factor
  • duplicate kern pairs capgroup-cap to scgroup-sc with a scale factor
  • duplicate kern pairs capgroup-capgroup to scgroup-scgroup with a scale factor

Correct?

I already have a script that should be doing this, but it needs some brushing up.

mekkablue avatar Apr 10 '20 09:04 mekkablue