Monocraft icon indicating copy to clipboard operation
Monocraft copied to clipboard

Add continuous ligatures for equal sign (=)

Open Scrumplex opened this issue 3 years ago • 2 comments

I think it would be nicer, if equal signs were connected instead of having chunks of triple-equal-signs.

=== should still become ≣≣≣ but ==== and longer should be ====

Monocraft: Equal signs with Monocraft

Fira Code:

Equal signs with Fira Code

Scrumplex avatar Sep 07 '22 10:09 Scrumplex

I wonder how Fira Code does this. If it is due to some script automatically generating ligatures for arbitrary lengths of that character, I will not be able to add that to this font since it was made by hand. However, if it is just using a feature of OpenTypeFonts that I'm not aware of, then I would be happy to add it.

IdreesInc avatar Sep 10 '22 20:09 IdreesInc

An alternative approach (and what I'd prefer) is dong what JetBrains Mono does with these: image

This might be easier to implement in practice. It also fixes one of my gripes with the current system which is that using = as a spacer (for example when editing Markdown documents) makes it look really strange and behave in a kind of counterintuitive way:

image

MCFX2 avatar Sep 11 '22 23:09 MCFX2

Turns out this requires complex character substitution, and as such is pretty much blocked until I can figure out #77

IdreesInc avatar Dec 29 '22 00:12 IdreesInc

Partially complete as part of #116

IdreesInc avatar Jun 10 '23 18:06 IdreesInc