iamcal / emoji-data

Easy to parse data and spritesheets for emoji
MIT License
2.56k stars 301 forks source link

Include Google and Twitter SVGs #175

Closed ccorcos closed 3 years ago

ccorcos commented 4 years ago

As I commented in https://github.com/iamcal/emoji-data/issues/174 I'd like some larger emoji images (I'm rendering some 78px emojis in some places and with a retina display, that requires 156px).

I noticed that once we get up to pngs that large, the SVGs are actually smaller. I notices that Google and Twitter provide SVG so I modified two scripts to collect them into this repository: build/google/makeSvg.sh and build/twitter/grab.php.

Note: First time ever using PHP

I don't know much about TTC fonts, but ideally we could extract Apple SVGs as well. Any ideas how to do that?

Also, it might make sense to integrate these in the build pipeline for emoji-datasource-google and emoji-datasource-twitter.

Thanks!

mikecann commented 3 years ago

Also very keen on getting SVG's any reason this isnt merged?

ccorcos commented 3 years ago

No one has ever responded...

mikecann commented 3 years ago

@iamcal Any reason why this cant be merged?

iamcal commented 3 years ago

Sorry for not responding sooner - The Apple emoji font uses bitmaps, not vectors/SVG, so there's no way to get SVGs for either Apple or Facebook images. As a result, I don't think it makes sense for this library to include SVG images. The purpose of this library is to make it easy to use bitmap'd emoji from the various icon sets, either as sheets or as individual images. If you want to use the SVGs from either Twemoji or Noto, then you can just use them directly from those projects.