Open Bug 1796880 Opened 2 years ago Updated 8 months ago

Emoji 15 characters do not appear.

Categories

(Core :: Layout: Text and Fonts, defect, P3)

Firefox 106
defect

Tracking

()

People

(Reporter: jimmy, Unassigned)

References

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:106.0) Gecko/20100101 Firefox/106.0

Steps to reproduce:

I went to https://emojipedia.org/shaking-face/

I am on Ubuntu 22.04 and have the latest NotoColorEmoji.ttf installed. The emoji 15 emoji work on other apps on my system.

Actual results:

While the emoji do work when an emoji font is explicitly referenced, by default the emoji in emoji 15 will only show a hex code. You can see this if you just put an emoji such as 🫨 in a webpage. On the emojipedia page, the emoji fails to display in the "Copy and paste this emoji" box.

Additionally, while emoji from Emoji 14 display, they are not in the TwemojiMozilla.ttf font that ships with Firefox, and thus fall back on the operating systems built in emoji font. Twemoji for Emoji 15 are not out yet, but when they are the font should be updated.

Expected results:

Emoji should all display correctly in the Twemoji font if possible, or in the system font (as with Emoji 15 which are not in twemoji yet).

The Bugbug bot thinks this bug should belong to the 'Core::Layout: Text and Fonts' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Layout: Text and Fonts
Product: Firefox → Core

TL;DR:

Emoji 13 and below: work fine
Emoji 14: Fall back to system font instead of twemoji.
Emoji 15: Don't display in most circumstances (also not in twemoji yet so the only option is the default system font).

I can repro this on Linux... Jonathan, do you know what's the process to update twemoji? Or should we add some other fonts to the list here?

Flags: needinfo?(jfkthame)
Severity: -- → S3
Priority: -- → P3

(In reply to Emilio Cobos Álvarez (:emilio) from comment #3)

I can repro this on Linux... Jonathan, do you know what's the process to update twemoji? Or should we add some other fonts to the list here?

I've just submitted a patch in bug 1761303 to update Twemoji to 14. (https://github.com/twitter/twemoji doesn't yet have Emoji 15 characters, afaics.)

So that should help somewhat, but doesn't answer the question of why Emoji 15 chars don't fall back to the system font, if it supports them. Oh - I wonder if the ICU update in bug 1792775 will help there, because that'll update the lists of Unicode emoji properties that we use to guide font selection. I'll see if I can confirm that.

Flags: needinfo?(jfkthame)

Ah, I think the reason we fail to use an installed Noto Color Emoji for these characters, even if it supports them, is that we don't do a font fallback search for characters that are unassigned in Unicode (see bug 1656156). So they'll work if the font-family list explicitly mentions Noto Color Emoji, but not via fallback.

So when we update ICU (and hence the Unicode properties data that we use), that should resolve this problem.

Status: UNCONFIRMED → NEW
Depends on: 1792775
Ever confirmed: true

This also depends on Bug 1824298, as unfortunately Twemoji seems to have been abandoned by Twitter.

Twemoji for Emoji 15 are not out yet, but when they are the font should be updated.

Someone just created a PR to update Twemoji Mozilla: https://github.com/mozilla/twemoji-colr/pull/74

You need to log in before you can comment on or make changes to this bug.