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

Bugs when render multibyte chars #1876

Closed
powercode opened this issue Apr 11, 2017 · 2 comments
Closed

Bugs when render multibyte chars #1876

powercode opened this issue Apr 11, 2017 · 2 comments

Comments

@powercode
Copy link

powercode commented Apr 11, 2017

With creators update, a new issue surfaced with rendering PowerLine multibyte chars.

Powerline works with customized fonts specifically created for prompts, with symbols for source control, etc. For example, they have the reverse separator, 0xE0B2, that is most often rendered as a backwards triangle.

The following is a sample of the text that does not work well any more.
here is '0xE0B2'
\esc[s\esc[79G\esc[45m\esc[90m\esc[100m\esc[30m0:00:00.0190\esc[100m\esc[37m\esc[47m\esc[30m08:59:47\esc[37m\esc[45m

https://github.com/powerline/fonts/tree/master/DroidSansMonoSlashed is a powerline font that can be used for testing.
Images displaying the issue can be found here: Jaykul/PowerLine#13

image

Cheers!

@PhMajerus
Copy link

It's not just with multibyte chars, I think this is related to an issue I found out about how the console renders chunks of texts with different colors. It regularly ends up being off by one characters when computing the starting column of a new chunk depending on characters and DPI scaling : #1907

@zadjii-msft
Copy link
Member

Yep, I can confirm that this is the same "ambiguous width characters" issue that @miniksa described in #1907. I'm gonna close this issue as a dupe of that one, to hopefully condense the discussion into one thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants