githubnext / monaspace

An innovative superfamily of fonts for code
https://monaspace.githubnext.com
SIL Open Font License 1.1
14.32k stars 240 forks source link

Texture Healing should consider whitespace and various narrow symbols #49

Open kizu opened 1 year ago

kizu commented 1 year ago

I really like the “texture healing” feature. I don't know if contextual alternates allow us to alter the glyphs based on the whitespace symbols nearby, but if it is possible, that would be a very logical thing to do.

An example:

A screenshot of 4 lines of text that have “M” and “i” letters near it in different combinations, showing how “M” surrounded by the whitespace is narrower than when surrounded by “i”s.

Here we can see that the “M” by itself with the whitespace around it is narrower than the other Ms.

kizu commented 1 year ago

Maybe a similar request, don't feel like creating a new issue, as maybe the reasons are the same, but: there are a lot of narrow common symbols like quotes or the bang which can also grant a bunch of space for the wider symbols:

A screenshot of the “M” letter surrounded by different quote symbols
awebeer256 commented 1 year ago

I'd say these are two different issues.

Anyway, allow me to "yes-and" your first comment: glyphs should also expand rightward (in LTR writing) when they represent the last character on the line, whether because the next character is a newline or because the rest of the line has been wrapped in the editor or because we're at the end of the file.