Three dots replaced with unicode character #7698

Closed
opened 2026-01-31 01:10:38 +00:00 by claunia · 5 comments
Owner

Originally created by @vlovich on GitHub (Apr 25, 2020).

Environment

Microsoft Windows [Version 10.0.18363.657]
WSL1 Ubuntu 20.04

Steps to reproduce

Type three dots ... into terminal. Observe they get replaced by Unicode version . Spacing is off (especially noticeable in code viewed in vi). Similarly != is replaced by a single Unicode even though cursor underneath is really treating it as two separate ascii characters.

This happens when Windows Terminal is running cmd.exe too so it's independent of the shell. Maybe the default font has changed to make this weird?

Expected behavior

Really don't expect this, especially for monospace code.

Actual behavior

Automatic character substitution with Unicode "equivalents" that makes it hard to see what the spacing in code actually is.

Originally created by @vlovich on GitHub (Apr 25, 2020). # Environment Microsoft Windows [Version 10.0.18363.657] WSL1 Ubuntu 20.04 # Steps to reproduce Type three dots `...` into terminal. Observe they get replaced by Unicode version `…`. Spacing is off (especially noticeable in code viewed in vi). Similarly `!=` is replaced by a single Unicode `≠` even though cursor underneath is really treating it as two separate ascii characters. This happens when Windows Terminal is running cmd.exe too so it's independent of the shell. Maybe the default font has changed to make this weird? # Expected behavior Really don't expect this, especially for monospace code. # Actual behavior Automatic character substitution with Unicode "equivalents" that makes it hard to see what the spacing in code actually is.
claunia added the Resolution-By-DesignNeeds-TriageResolution-Duplicate labels 2026-01-31 01:10:39 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Apr 25, 2020):

It's actually just a ligature, and in PR #5505 we switched to the non-ligature version of the default font. This will be out soon.

@DHowett-MSFT commented on GitHub (Apr 25, 2020): It's actually just a ligature, and in PR #5505 we switched to the non-ligature version of the default font. This will be out soon.
Author
Owner

@DHowett-MSFT commented on GitHub (Apr 25, 2020):

(Ligatures only change the visual representation of the data, not the actual data.)

@DHowett-MSFT commented on GitHub (Apr 25, 2020): (Ligatures only change the visual representation of the data, not the actual data.)
Author
Owner

@vlovich commented on GitHub (Apr 25, 2020):

Is there anything I can change in settings? Just changing the font doesn't seem to work.

@vlovich commented on GitHub (Apr 25, 2020): Is there anything I can change in settings? Just changing the font doesn't seem to work.
Author
Owner

@DHowett-MSFT commented on GitHub (Apr 25, 2020):

Sure! If you set your font to Consolas or Cascadia Mono (which you can install from the cascadia repository) it will turn off the ligatures.

@DHowett-MSFT commented on GitHub (Apr 25, 2020): Sure! If you set your font to Consolas or Cascadia Mono (which you can install from [the cascadia repository](https://github.com/microsoft/cascadia-code/releases)) it will turn off the ligatures.
Author
Owner

@vlovich commented on GitHub (Apr 25, 2020):

Ahh. The missing part was getting the font setting it into the right spot. I had it outside the profiles list. Needed to put "fontFace": "Consolas" into my WSL profile. Thanks a lot for the help!

@vlovich commented on GitHub (Apr 25, 2020): Ahh. The missing part was getting the font setting it into the right spot. I had it outside the profiles list. Needed to put `"fontFace": "Consolas"` into my WSL profile. Thanks a lot for the help!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7698