commit-mono icon indicating copy to clipboard operation
commit-mono copied to clipboard

Smart kerning at the end of text

Open henryso opened this issue 1 year ago • 2 comments

I've noticed that smart kerning does not occur at the end of the text. For example, MM has less space between the M's than MM (that is MM followed by a blank). This is surely an edge case, probably minor, and may be technically infeasable/undesirable.

henryso avatar Jun 10 '24 13:06 henryso

Good call! This is something that I've looked into before, but it's not technically feasible due to the limitations of detecting end of line when using OpenType Features - at least to my knowledge. I will try to improve with the next version if possible:)

eigilnikolajsen avatar Jun 10 '24 13:06 eigilnikolajsen

Sorry for the lack of technical knowledge, but I was wondering if it is difficult to detect end-of-line, is it easier to detect non-end-of-line? Would considering “this letter is at the end of the line” as the default when laying out a letter be able to solve the problem?

AmeroHan avatar Oct 09 '24 19:10 AmeroHan