Formula-based kerning

Hello everyone, I’ve been searching the forum for something related to this but couldn’t find anything concrete. My question is whether it is possible to define kerning using formulas, or if this could be possible at some point.

I find this very useful when it comes to spacing, especially when multiplying by factors, but once you reach the kerning process (particularly in large or extensive fonts and glyphset or languages) you really miss an improvement of this kind.

Thank you in advance.

Can you give an example what you are thinking about?

Sure Georg, this example could work: the kerning I use for the letter H could be reused, for instance, for Istroke (this way I could keep exactly the same spacing as the I and take advantage of the components to build this glyph). This would avoid having a separate Istroke group and duplicating the kerning work if, for example, there were any pairs with the letter H.

In the same way, this approach could work for glyphs whose structure is derived from others, K → Khook, C → Chook, Ghook (they could, for instance, use different factors. Chook = C × 1.2, Ghook = C × 1.35, while still using C as the main reference, without the need for additional kerning work. Do you think this could make sense?

Multiplying kerning vales is not a good idea. Same problems as with the metric keys (where you can use those formulas.
but adding to other values might be useful. But it will complicate the setup a lot. I’ll think about it.

1 Like

Thank you Georg!