microsoft / cascadia-code

This is a fun, new monospaced font that includes programming ligatures and is designed to enhance the modern look and feel of the Windows Terminal.
Other
25.39k stars 803 forks source link

Ligature for (--) not working #518

Closed Muhimen123 closed 3 years ago

Muhimen123 commented 3 years ago

Cascadia family version

2105.24

Cascadia family variant(s)

Cascadia Code (the version with ligatures)

Font file format(s)

.ttf (variable)

Platform

Windows

Other Software

Visual Studio Code 1.57 Visual Studio Code Insiders 1.58 Pycharm Windows Terminal nvim

What happened?

The ligature for double hyphen is not working in any of my IDE/text editor. I tried reinstalling but the problem keeps occurring again and again. Any ligature other the double hyphen works fine. Here is a gif from my windows terminal.

ligatureBug

aaronbell commented 3 years ago

Thanks! There actually is a ligature there—you can tell because the position of the left-most hyphen shifts a bit to the right when you type the second hyphen. In order for it to become a solid line you have to either enter another -, (so ---) or add another character like > < |.

The reason why it doesn't become a solid line from the get-go is that -- has semantic meaning, so it would be confusing not to be able to see both hyphens in that case.