githubnext / monaspace

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

Missing <=> (spaceship) ligature for c++20 #155

Closed SavenkovIgor closed 7 months ago

SavenkovIgor commented 7 months ago

This is a new c++ operator from c++20 standard

Expected behavior: This 3 symbols <=> has its own ligature.

Actual behavior: Applied ligature for 'less or equal' and then symbol 'more'

christophberger commented 7 months ago

PHP seems to have such an operator as well

echo $a <=> $a; // 0 since they are equal
echo $a <=> $b; // -1 since $a < $b
echo $b <=> $a; // 1 since $b > $a

This renders in VSCode with Monspace Neon and all ligature options enabled as follows:

Screenshot 2023-12-04 at 11 38 30
biggianteye commented 7 months ago

See #11

christophberger commented 7 months ago

Thanks @biggianteye. I did not search for "spaceship" in the issues, didn't even know that this operator has a name :)

SavenkovIgor commented 7 months ago

Closing due to duplicate