d99kris / nchat

Terminal-based Telegram / WhatsApp client for Linux and macOS
MIT License
524 stars 40 forks source link

Some emojis don't render correctly #224

Closed fulalas closed 2 months ago

fulalas commented 2 months ago

Using this emoji in Telegram :thumbsup::light_skin_tone: I have this output (note the odd square):

bug

Tried in xfce4-terminal 1.1.3 and alacritty 0.10.0.

nchat 4.75, but this bug exists since long time ago.

d99kris commented 2 months ago

If you copy this emoji 👍🏻 from your web browser and paste into the terminal shell or text editor (ex: nano, emacs, vim), does it render correctly?

fulalas commented 2 months ago

Hmmm... It doesn't render correctly in any of these scenarios. Do you know a way to fix that?

d99kris commented 2 months ago

I don't know. I mainly use Terminal on macOS and gnome-terminal on Ubuntu, using font Monaco (but not sure it matters) and in those environments this particular emoji renders fine (in nchat, shell and terminal-based editors).

I do have encountered other emojis not rendering correctly, but I don't recall exactly which ones.

Since nchat and other terminal-based apps behave similarly I don't think this is an nchat bug. I'll convert the issue to a Q&A discussion item instead and leave it open for a while, in case someone else have some idea on how to solve it.