Rendering text with emoji

Hello! I need to display some text on a imgui window that happens to contain some emoji.

I tried getting some emoji fonts to work, with no success; the emoji are rendered as ‘???’ chars. Looking a bit more into it, it seems that emoji codepoints are beyond the ranges allowed by imgui (0xFFFF). The hamburger emoji, for example, has codepoint 0x1F354.

Do you know any way of getting emoji characters working on texts?

Thanks in advance o/

It’s not possible, we currently can only display characters in the 0x0000…0xFFFF range.

You may use some remap or custom icon font and custom rect to do it manually but it won’t be using standard codepoints.

1 Like