Why isn't uppercase letter - superior automatically kerned?

Post Reply
skyrailhighline
Posts: 17
Joined: 25 Apr 2021

Why isn't uppercase letter - superior automatically kerned?

Post by skyrailhighline »

I noticed these are not kerned (while superior - uppercase letter is kerned) for zerosuperior, how do I make sure they are automatically kerned?

Similarly, superior - lowercase is not kerned (for all superior numerals) but lowercase - superior is kerned.
User avatar
SCarewe
Posts: 135
Joined: 23 Apr 2021

Re: Why isn't uppercase letter - superior automatically kerned?

Post by SCarewe »

In what cases do you need superior to lowercase kerning?

If you want to force auto kerning for these pairs, you need to add them as user-set autokern pairs (if you script this, set it in GSFontMaster.userData["KernOnUserSetAutopairs"]).
User avatar
Tim Ahrens
Site Admin
Posts: 502
Joined: 11 Jul 2019

Re: Why isn't uppercase letter - superior automatically kerned?

Post by Tim Ahrens »

Uppercase letters to superiors are kerned.

There must ba specific reason why they aren’t kerned in your font. Feel free to send me the .glyphs file, then I can have a closer look.
skyrailhighline
Posts: 17
Joined: 25 Apr 2021

Re: Why isn't uppercase letter - superior automatically kerned?

Post by skyrailhighline »

Thank you, I have sent the files.
User avatar
Tim Ahrens
Site Admin
Posts: 502
Joined: 11 Jul 2019

Re: Why isn't uppercase letter - superior automatically kerned?

Post by Tim Ahrens »

Thank you for the files.

The pairs list contained in Kern On is based on extensive processing of real-world data, plus some common sense: some pairs are removed as a tidy-up, and some pairs are generated, when the list is created.

The superior zeroes are generally not included after letters because they are unlikely to occur in this position (footnotes don’t start with a zero).

The pairs that include inferiors are mostly based on chemical formulas (the most common use, I suspect), plus some pairs that occur in Wikipedia (from which I process very large amounts of texts). Some of the pairs fall under the auto-generation, or were tidied away. The result is not perfectly consistent, nor does it have to be: real-world usage is what counts. Some combinations like ₀T₀ may not symmetrical in terms of coverage but this shouldn’t be relevant unless you make fonts indented for creating graphic patterns. Or, am I missing the relevance here?
Post Reply