zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
47.32k stars 2.74k forks source link

Unicode characters of nonstandard width overlap one another as if they were monospaced #5262

Open rrokkam opened 2 years ago

rrokkam commented 2 years ago

Check for existing issues

Describe the bug

In the following image, the ✚ and 2 overlap, and the ellipses extend into the closing parenthesis:

Screen Shot 2022-07-28 at 6 47 37 PM

For comparison, iTerm2:

Screen Shot 2022-07-28 at 6 49 18 PM

Unicode character width or font funkiness?

To reproduce

Copy/paste (main|✚2…) into the Zed terminal.

Expected behavior

Characters should not overlap.

Environment

Zed 0.49.1 – /Applications/Zed.app \nmacOS 12.1 \narchitecture x86_64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue

No response

rrokkam commented 2 years ago

This is terminal-specific - these characters are spaced correctly outside of the terminal.

Screen Shot 2022-07-29 at 3 12 19 PM
mikayla-maki commented 2 years ago

You can see this particularly well with this single character: ﷽ (U+FDFD). Though to be fair, few apps manage this 'character' well.

notpeter commented 2 months ago

This has been fixed for main|✚2… in the terminal but ultra-wide characters like ﷽ are still render overlapping.

echo 'main|✚2…'; echo 1234567890; echo "﷽234567890"
image