Kerning Edge Cases

Hello,

I had a question about a kerning edge case in Glyphs. Periods come at the end of words, however, they appear right before “com”, “gov”, etc in web URLs.

The kerning of the period may look correct at the end of a word. That said, it may look oddly spaced for a URL.

Does Glyphs have a feature that can detect both scenarios and adjust accordingly?

Is this a common edge case to consider or am I just overthinking this?

Any advice or insight would be appreciated,

-Sam

can you show some screenshots what show the difference in spacing you are after?

Hi Georg,

I don’t have a specific example that I’ve seen of this happening. It is just something that popped into my mind and I was curious if it is a common edge case.

Is it something you consider when kerning your fonts?

That would need contextual kerning. You need to write that yourself in the a custom kern feature.
So you do your normal kerning for letter+period and period+letter. Then you add a line like this:

pos @allLetters period' @allLetters <-20 0 -20 0>;

That would make letter+period a bit tighter if there is another letter after the period.