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

Left shift and right shift assignment operators rendered wrong #166

Closed LeoVasanko closed 1 month ago

LeoVasanko commented 7 months ago

A fairly common operator <<= in C and other languages is misrendered as < followed by (when ss2 or dlig is enabled). Similarly, right shift assignement >>= is misrendered as > and .

There should be ligatures to handle the shift assignment operators <<= and >>= with higher precedence than the <= or >= part of it as comparison.

LeoVasanko commented 7 months ago

There are also bit rotation operators <<<= and >>>= that while not part of standard C syntax are less used, but probably should not be too badly mishandled in font rendering either.

Finii commented 5 months ago

Related (partly duplicate)

Maybe add the <<<= operators there as comment ;-)

idan commented 1 month ago

Fixed in ca8015b27bdc6d8e1201b1ad722f4ae3c38970d0