Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode neutral characters width #42

Closed
kghost opened this issue Dec 23, 2017 · 2 comments
Closed

Unicode neutral characters width #42

kghost opened this issue Dec 23, 2017 · 2 comments
Labels
Area-Output Related to output processing (inserting text into buffer, retrieving buffer text, etc.) Area-Rendering Text rendering, emoji, complex glyph & font-fallback issues Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Conhost For issues in the Console codebase Resolution-Fix-Available It's available in an Insiders build or a release

Comments

@kghost
Copy link

kghost commented Dec 23, 2017

As Unicode TR11 suggested, all neutral characters map to halfwidth or narrow characters.

According to EastAsianWidth following characters are neutral:

✖ 0x2716
✚ 0x271A
✭ 0x272D
✹ 0x2739

so they should be halfwidth or narrow, but is rendered full-width in CMD.exe, which is causing terminal disarrangement.

Your Windows build number: (Type ver at a Windows Command Prompt)

Microsoft Windows [Version 10.0.16299.125]

@miniksa miniksa added Product-Conhost For issues in the Console codebase Area-Rendering Text rendering, emoji, complex glyph & font-fallback issues labels Jan 22, 2019
@ghost ghost added the Needs-Tag-Fix Doesn't match tag requirements label May 17, 2019
@miniksa miniksa added Area-Output Related to output processing (inserting text into buffer, retrieving buffer text, etc.) Issue-Bug It either shouldn't be doing this or needs an investigation. labels May 29, 2019
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label May 29, 2019
@ExE-Boss
Copy link

ExE-Boss commented Sep 25, 2019

This might be a duplicate of #2066.

@zadjii-msft
Copy link
Member

This looks like it was fixed at some point in the past - unsure when precisely:

printf "foo\u2716bar\nfoo\u271abar\nfoo\u272dbar\nfoo\u2739bar\n"

image

@ghost ghost added the Needs-Tag-Fix Doesn't match tag requirements label Nov 22, 2021
@zadjii-msft zadjii-msft added Resolution-Fix-Available It's available in an Insiders build or a release and removed Needs-Tag-Fix Doesn't match tag requirements labels Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Output Related to output processing (inserting text into buffer, retrieving buffer text, etc.) Area-Rendering Text rendering, emoji, complex glyph & font-fallback issues Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Conhost For issues in the Console codebase Resolution-Fix-Available It's available in an Insiders build or a release
Projects
None yet
Development

No branches or pull requests

4 participants