FTXUI icon indicating copy to clipboard operation
FTXUI copied to clipboard

Some Emojis make the layout appear "glitchy"

Open Darleanow opened this issue 5 months ago • 4 comments

Hey Arthur,

I'm making a textual game, and trying to use some icons to make my game look better.

It appears that some emojis (not all of them), make the layout appear glitchy, i'm talking especially about this emoji: ❤️ But for example this one: ✊ is not causing any issues.

It renders on the screen though, just makes everything glitchy on updates (e.g. moving the cursor, new selection on a dropdown)

Do you have any ideas on why ? If i can do something to fix this.

Note that I'm using Windows, powershell with a nerd font.

image

From the screen, the second heart emoji is a working one, its a slight difference only, but it's triggering to be restricted to a few only !

Also it might be a duplicate, but I was unable to use the other issues as valuable ressources for my use case (maybe I'm wrong)

For the code, thats basically something like this (this is pseudo code, it's taken from a larger code segment, but shows the idea):

const std::string health_icon = "\u2764\uFE0F"; // ❤️
text(health_icon + " HP: " +std::to_string(player.attributes().get_current_health())

Darleanow avatar Sep 01 '24 22:09 Darleanow