reblessed icon indicating copy to clipboard operation
reblessed copied to clipboard

[Bug] Emoji's break boxes.

Open p0ut opened this issue 2 years ago • 5 comments

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 🍌 |

p0ut avatar Feb 11 '23 21:02 p0ut

Fixed it in the latest commits

kenan238 avatar Feb 11 '23 21:02 kenan238

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

kenan238 avatar Feb 13 '23 20:02 kenan238

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

kenan238 avatar Mar 05 '23 08:03 kenan238

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 https://github.com/chalk/slice-ansi/issues/35#issuecomment-1885346171) or string-width package for that.

erictheswift avatar Jan 31 '24 14:01 erictheswift

I don't think it'd be worth the effort considering how little time I have for this project nowadays, I'll wait until summer rolls by so I can look into this

kenan238 avatar Jun 01 '24 17:06 kenan238