#8252 Only use twemoji when needed

unreleased
open
nobody
emoji (4)
General
nobody
2 days ago
2018-10-22
No

Lots of emoji are already supported in many browsers. I think it'd be nice to use native emoji when possible and only twemoji if needed. However, that may mean sometimes things are shown native and sometimes they are twemoji images, so that inconsistency might not be good either.

I found https://github.com/pento/x1f4a9/issues/4 as an example of detecting if certain emoji are supported natively. I don't see a built-in twemoji option for it. One tricky part would be figuring out what emoji to detect. Different browsers & OS have different levels of emoji support. For example, simple emoji like smile are probably supported, but newer emoji are not. So I'm not sure how to practically if a check should look for support of "all" emoji or just certain ones, or different levels, etc.

Discussion

  • Dave Brondsema

    Dave Brondsema - 2018-11-05

    reactions.emoji_list would be a specific short list of emoji we could check for and avoid changing with twemoji

     
    • Dave Brondsema

      Dave Brondsema - 2 days ago

      Note that :heart: ❤ renders natively as a small black icon on many systems (I think its a separate set of glyphs that predates emoji usage). Some systems (older Mac OS) will render it as red if the appropriate variation code is included too ❤️ But the "emoji" lib doesn't do that, so it'd require some special coding (and broad testing)

       

Log in to post a comment.