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 for Windows 10 images #23

Open
iamcal opened this issue Jul 31, 2015 · 6 comments
Open

Support for Windows 10 images #23

iamcal opened this issue Jul 31, 2015 · 6 comments

Comments

@iamcal
Copy link
Owner

iamcal commented Jul 31, 2015

http://blog.emojipedia.org/windows-10-emoji-changelog

@iamcal
Copy link
Owner Author

iamcal commented Aug 4, 2015

The TTF is somewhat formatted like the a android font - glyf table using cmap to map glyphs, with GSUB for ligatures.

The complicated part is that windows glyphs are actually ttf vectors. They are built by a combination of the COLR table (which groups multiple glyphs together using indexed colors) and the CPAL table which maps indexes to real colors:

<COLR>
  <version value="0"/>
  <ColorGlyph name="uni2139">
    <layer colorID="8" name="uni2139"/>
    <layer colorID="6" name="glyph00249"/>
  </ColorGlyph>

<CPAL>
  <version value="0"/>
  <numPaletteEntries value="56"/>
  <palette index="0">
    <color index="0" value="#3F433FFF"/>
    <color index="1" value="#848484FF"/>
    <color index="2" value="#7F5526FF"/>
    <color index="3" value="#A8A8A8FF"/>
    <color index="4" value="#FFFDC2FF"/>
    <color index="5" value="#000000FF"/>
    <color index="6" value="#FFFFFFFF"/>
    <color index="7" value="#38BB38FF"/>
    <color index="8" value="#28C8F0FF"/>
    <color index="9" value="#B01712FF"/>
    <color index="10" value="#C9874DFF"/>

It looks like exporting to SVG will be the first step, then converting those to bitmaps.

@otherguy
Copy link

Would be useful!

@Crissov
Copy link
Contributor

Crissov commented Dec 12, 2017

I see there are two branches windows10 and windows10_simple from late 2015 which actually have the files. Why did neither make it into the master branch yet?

@iamcal
Copy link
Owner Author

iamcal commented Dec 20, 2017

both of them were broken in different ways. iirc, in the one where i turned the ttf definitions into SVG, it had a bunch of shapes that didn't translate properly. the other one broke on non-square images.

the windows emoji have changed significantly since i last looked into it. not sure if the storage format has changed

@EntranceJew
Copy link

I'm popping my head in to see if we really need to transliterate things to SVG, wouldn't it be just as effective to use imagemagick and the system font to render all the options?

Hoping it's not a silly suggestion, I'm just a windows user that's been interested in seeing this made available for a while and I'm not exactly familiar with finer details the problem.

@iamcal
Copy link
Owner Author

iamcal commented May 24, 2018

i need to spend some time looking into it - the failures in the SVG would have the same failures if i did it with IM; it's something in the format I don't understand and was translating incorrectly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants