Coder Social home page Coder Social logo

Comments (8)

pbeshai avatar pbeshai commented on June 7, 2024 1

Do we need to have emojijs rendered inside an SVG or whatever? Can't they just be put in divs that are absolutely positioned?

from coral-ask-election-2016.

iros avatar iros commented on June 7, 2024

Yes! I pushed a commit into an experiments folder. Check it out.

This is the font-family css spec:

font-family: "Apple Color Emoji","Segoe UI Emoji","NotoColorEmoji","Segoe UI Symbol","Android Emoji","EmojiSymbols";

See emoji-test.html

Going to test some SVG now...

from coral-ask-election-2016.

iros avatar iros commented on June 7, 2024

So this works in SVG too:
image

See emoji-test-svg.html. This did reveal a problem where the US flag for example has not be rendering quite right on some android devices (I'm testing using browserstack. Going to try using https://github.com/jloutsenhizer/emojijs next.

from coral-ask-election-2016.

iros avatar iros commented on June 7, 2024

First experiment using emojijs does not work in SVG. It looks like it relies on rendering small canvas elements. Going to attempt this with canvas instead.

from coral-ask-election-2016.

iros avatar iros commented on June 7, 2024

Excellent. Using emojijs + canvas, I can render the US flag and other obscure emoji on various devices:
image

See emoji-twitter-test.html

from coral-ask-election-2016.

tafsiri avatar tafsiri commented on June 7, 2024

I'll also add that while doing the wireframes I found that (surprisingly) the 'Apple Color Emoji' font wasn't the best at rendering a wide range of emoji (e.g. the flag).

from coral-ask-election-2016.

kadamwhite avatar kadamwhite commented on June 7, 2024

Other emoji resources:

from coral-ask-election-2016.

kadamwhite avatar kadamwhite commented on June 7, 2024

We have emoji working now, closing this

from coral-ask-election-2016.

Related Issues (20)

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.