githubnext / monaspace

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

Special case for double letters #42

Open pentamassiv opened 8 months ago

pentamassiv commented 8 months ago

Some words that contain double letters look odd due to the texture healing. One example is the word "Humming". The two letters 'm' have a different width and one of them looks squished. Maybe do not do texture healing if it is a double letter?

You can see what I mean here:

Screenshot from 2023-11-10 14-18-40

ehntoo commented 8 months ago

Some other odd-looking cases I've encountered: immediate 0x00FFFF00

image
awebeer256 commented 7 months ago

This is definitely a matter of personal preference. If it gets added, it should be toggleable.

Some might even want this exception to apply if the repeated characters aren't right next to each other; see #90. The ideal situation would be to make it so that if any two instances of the same character are within a certain user-configurable distance of each other (and on the same line), they must be drawn exactly the same. Or you could make it a bit looser, such that two nearby instances may mix and match their narrow and medium variants ("contextual alternates"), or their medium and wide variants, but not their narrow and wide variants.

And then you could go even further by adding this same distance requirement vertically.

These do, however, add increasing levels of complexity to the internal logic that decides which variant to use for each instance of each character.