microsoft / terminal

The new Windows Terminal and the original Windows console host, all in the same place!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

some weird behavior when dealing with full-width characters

BlueRain-debug opened this issue · comments

Windows Terminal version

1.15.3465.0

Windows build number

10.0.19044.2546

Other Software

No response

Steps to reproduce

  1. Run wt.exe
  2. Open a PowerShell Tab
  3. Type something like "echo R2.01/R2.02→R2.03"

Expected Behavior

normal

Actual Behavior

On the right side of the arrow symbol, the cursor appears in the center of the text.

strange

This is sort of a known issue and I'm sure there have been previous reports like this in the past, like #9940 for instance. Although I'm not entirely sure with which existing issue this one should be deduplicated. It occurs because our text renderer draws text like you would draw proportional fonts. So if your monospace font isn't actually monospace (which may happen due to font fallback), the text might start to be "misaligned". The good news is that I'm working on a proper solution in form of an ongoing "AtlasEngine" rewrite.

I'm fine calling this /dup #9940. Thanks!

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!