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.11k stars 796 forks source link

Ligature Character is duplicated on wrapped line #604

Closed SauceMan8 closed 2 years ago

SauceMan8 commented 2 years ago

Cascadia family version

2102.025

Cascadia family variant(s)

Cascadia Code (the version with ligatures)

Font file format(s)

I don't know

Platform

Windows 10 10H2

Other Software

Visual Studio 2022: V 17.0.1 Cascadia code light, size 9, 12, 22. (I only tried those 3)

What happened?

image When a line wraps on a ligature, specifically "/>", the second character is duplicated on the next line.

The image shows the issue. The actual text is: ...'name ="fileName"/>'

I tested this with '++' and got the same issue, but'=>' worked correctly.

aaronbell commented 2 years ago

Fascinating. Unfortunately, I don't know if there is a way to fix this issue in font as it appears to be editor related. Essentially, what I would guess is happening, is that VS is duplicating the code that is wrapping onto the new line. So the font thinks that the text string continues, but it is being clipped.

I'd suggest inquiring with the Visual Studio folks on this.

SauceMan8 commented 2 years ago

Moving issue to Visual Studio