Giter VIP home page Giter VIP logo

Comments (6)

rumpaar1 avatar rumpaar1 commented on July 26, 2024

OK. See that you are using effectively a whitelist of platforms that supported emoji back in early 2016. Chrome OS supports all of the Unicode 9.0 emoji in full colour now. Tested on macOS Sierra with Chrome and full colour emoji are supported (not blocked by script either). Segoe UI Symbol Black and White emoji supported on Chrome on Windows 7. Will do some testing on Windows 10 and 8.1 and will probably submit a pull request with an updated whitelist.

from simulating.

ncase avatar ncase commented on July 26, 2024

Thanks @rumpaar1! Yeah, at the time there wasn't (still isn't) a good way to consistently test whether an OS/browser had emoji, so I stuck to a whitelist. If you can send a PR with an updated whitelist that would be most excellent, thanks again!

from simulating.

rumpaar1 avatar rumpaar1 commented on July 26, 2024

Been a bit busy but I'll see if I can get around to it now.

from simulating.

workingjubilee avatar workingjubilee commented on July 26, 2024

I think a better approach would be to use JavaScript to render and inspect the available emoji for a correct rendering. Modernizr uses this to resolve emoji detection, and it works fairly well, although I would probably use a slight variation on their approach rather than mirroring it exactly (it has trouble with pixel width variations on high-density "retina" displays... this is just a consequence of guessing where the best pixel to pick is, rather than picking a few and inspecting them, so since display is important, we can take a little time to do this and maybe note when we last did so in localStorage to avoid repeating the task often if it turns out it is slower than an eyeblink).

from simulating.

wizzwizz4 avatar wizzwizz4 commented on July 26, 2024

This is a great approach! Checking whether the rendered picture is rectangular is probably sufficient, though; not all systems with Emoji support colour them in, for instance.

from simulating.

workingjubilee avatar workingjubilee commented on July 26, 2024

Ah, I suppose this differs mostly on creator intent then? My impression based on the messaging was that the purpose of the current system was checking for multicolored emoji support, and offering a font that guaranteed at least BW unicode emoji if not. Happy to draft an implementation either way.

from simulating.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.