Emojis not showing on rich text label (only browser version)

Hi, I have this game that I have exported both as downloadable and as html for itch io.

As you can see, emojis look fine in the downloadable version, but show up as strange placeholder characters in the browser version.

Does anyone know how to fix this?

As always, thanks very much! :grinning_face:

1 Like

I don’t think this is a Godot issue, more likely your operating system or browser doesn’t support them properly, perhaps wrong encoding? What Operating System do you use?

2 Likes

Thanks for your reply. I use Windows 10.

Like you say --and from what I’ve read–, it seems to be an html5 issue, not a godot issue. The point is how to go about fixing it, because I haven’t found any workable solutions yet.

The reason I ask here is because I imagine other people making browser games in godot must have come across this issue.

I encounter the same problem in Chrome and Firefox. I have not tried other web browsers.

1 Like

Try it on a different device altogether first, not guaranteed it’ll show up, but if it does, then it might be something missing on your pc.

1 Like

Thanks for that too. I have already tried on two desktops and a laptop. The problem persists. :grinning_face:

2 Likes

It might be worth viewing the page source in the browser (or saving it if you can) and seeing what the actual encoding is for that glyph, but my guess would be that the downloadable version is rendering with a baked in font (that has your emoji) while the browser version is rendering with whatever font the browser uses (which presumably doesn’t, and so displays the boxed hex code).

1 Like

Sounds plausible, thanks. :slight_smile:

The question is, is there an easy way to make the browser use my font? As in, how can I build my font into the game so that the browser recognizes it?

I’m not sure, but it’s worth noting that bbcode has an image tag, so you could use an embedded image if the font turns out to be unreliable.

1 Like

Thanks, that could help. I have lots of emojis in the game, so it’d be a lot of work, but I guess I could eventually resort to that.

Are you using a font with emojis or letting the emoji be loaded from a system font? If it’s the former then I’d recommend you to open an issue here because that shouldn’t happen. If it’s the later then it’s probably using a different fallback system font in the native vs the html5 versions.

A similar issue on Android is here Emoji's don't seem to render on android 15 · Issue #103363 · godotengine/godot · GitHub