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

[Bug] Emoji's break boxes. #12

Open
p0ut opened this issue Feb 11, 2023 · 4 comments
Open

[Bug] Emoji's break boxes. #12

p0ut opened this issue Feb 11, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@p0ut
Copy link

p0ut commented Feb 11, 2023

It seems that some emoji's have a tendency to break boxes. Something due to the length of the emoji not being detected.

| banana |
| banana 馃崒 |

@kenan238
Copy link
Owner

Fixed it in the latest commits

@kenan238 kenan238 added the bug Something isn't working label Feb 11, 2023
@kenan238
Copy link
Owner

Never mind, this is still an issue with some stubborn emojis

@kenan238 kenan238 reopened this Feb 13, 2023
@kenan238
Copy link
Owner

kenan238 commented Mar 5, 2023

Apparently, this is not my fault. It's the font's

@erictheswift
Copy link

Can be called fonts fault, however it's how it works.

Emojis/country flags need special treatment when calculating string width.

You can consider using slice-ansi (however some cases are not yet handled even there chalk/slice-ansi#35 (comment)) or string-width package for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants