recursive-code-config
recursive-code-config copied to clipboard
The ligature for double colon has too much space around it with a low value of MONO.
I found that the ligature for “::” is spaced in a way that makes sense for monospaced fonts but seems wrong with a proportional font. There is free space around the dots to pad it to the width of two monospaced characters (it seems). My font has 0.25 for MONO and was created with the code from the branch proportional on 2023-06-23. The whole config is here (issue #24), but the default weight is 400.
An example where I used a zero-width space to supress liging:
The ligature has a lot of space around the dots, so it is much wider than just two colons. The examples show that code shown with that ligature (ligature & spaces) is too wide. That makes me tend to write it without spaces around the colons (ligature & no spaces), but spaces are preferred and sometimes automatically added by the editor. The ideal would be that the ligature would not be there (no ligature & spaces). I added also an example in Recursive Sn Lnr St, which has ideal spacing around the colons IMO, but I set MONO to 0.25, not 0, especially to have wider spaces, so that is my tradeoff.
Please, fix it so that the ligature stretches according to MONO. An other viable option would be the ability to disable certain ligatures, but I don't know how simple that is.