unicode-rs / unicode-width

Displayed width of Unicode characters and strings according to UAX#11 rules.
https://unicode-rs.github.io/unicode-width
Other
217 stars 27 forks source link

Superhero emoji width #11

Closed chrisduerr closed 4 years ago

chrisduerr commented 5 years ago

It seems like the Superhero emoji (🦸) is reported with a width of 1, however since it's an emoji I think the correct width should be full-width (2). As far as I can tell, this should also be unrelated to #4, since we're not dealing with composition here.

I would have just sent a PR, but I wasn't sure if adding it to the character width table as a full width character would be correct. It might also be interesting to see if other emojis have this problem too, I wasn't able to find any though.