Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Twemoji-unsupported ZWJ emoji in Firefox #456

Open
nolanlawson opened this issue Sep 9, 2024 · 1 comment
Open

Support Twemoji-unsupported ZWJ emoji in Firefox #456

nolanlawson opened this issue Sep 9, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@nolanlawson
Copy link
Owner

(Follow-up to #453.)

Firefox is no longer showing "double" emoji, but now it is permanently hiding them, even on OSes where the built-in font (Noto, Apple, Segoe) supports them. E.g. "head shaking horizontally" (🙂‍↔️), "head shaking vertically" (🙂‍↕️), and "phoenix" (🐦‍🔥) are removed from the picker:

Screenshot from 2024-09-09 07-48-51

This is better than rendering double emoji, but it's sub-optimal because we could just use the OS font if it has better support:

Screenshot from 2024-09-09 07-49-21

There is a bug on Firefox from 2023 about how their in-browser Twemoji font is out of date (14.1 only, no 15.0 or 15.1).

A few options:

  • Remove Mozilla Twemoji entirely from the font list
  • Reorder it to give preference to fonts that are likely to be more up-to-date (e.g. Noto and Apple, Segoe is more dicey due to Windows 10)
  • Figure out a way to give preference to ZWJ characters to fonts that don't render it as a double character

Current fonts:

export const FONT_FAMILY = '"Twemoji Mozilla","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol",' +
'"Noto Color Emoji","EmojiOne Color","Android Emoji",sans-serif'

@nolanlawson nolanlawson added the enhancement New feature or request label Sep 9, 2024
@nolanlawson
Copy link
Owner Author

nolanlawson commented Sep 9, 2024

Another issue with the current approach is that Firefox shows mixed fonts; e.g. in the first screenshot above, "shaking face" (🫨) is rendering with Noto Color since it comes from Unicode 15.0 whereas "face in clouds" (😶‍🌫️) renders in Twemoji since it comes from 13.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant