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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong width for flag symbols #39

Open
abrander opened this issue Feb 28, 2020 · 4 comments
Open

Wrong width for flag symbols #39

abrander opened this issue Feb 28, 2020 · 4 comments

Comments

@abrander
Copy link

runewidth.StringWidth(馃嚛馃嚢) returns 2.

I haven't looked into this at all, and I have no idea what I should expect, but a width of 1 seems reasonable.

@eteran
Copy link

eteran commented Jun 10, 2020

Likely related: https://www.youtube.com/watch?v=sTzp76JXsoY

@ghostsquad
Copy link

The problem, as described in the video, is that it's technically 2 characters, with the renderer collapsing it to 1 character. So I think it's ill advised to change it from 2 to one, as it would break any renderer that doesn't support flag emojis.

@gdamore
Copy link

gdamore commented Oct 17, 2021

Looking at this in a bit more detail, I think the flag symbols need special handling in the renderer.

However, they definitely count as emoji, and should be displayed using the Emoji Presentation property.

@hhirtz
Copy link

hhirtz commented Nov 4, 2021

Duplicate of #28?

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

No branches or pull requests

5 participants