Open albertvaka opened 3 years ago
It is just that 2.6 is very old and before support for colour fonts (which emoji's are).
According to https://freetype.org/ "color embedded bitmaps" are supported since 2.5, though.
Hmm, somehow my reply didn't make it - anyway, there are 4 colour font formats in total, one from each of Apple, Microsoft, Google, and Adobe + Mozilla . FreeType 2.5 was likely the first version when one of the four first appeared! As far as I know the last one was still being improved as of 2.12 .
There are 4 different colour font formats - one from each of Microsoft, apple, Google, Mozilla/Adobe. Freetype 2.5 was likely the beginning of it. Support for the last one is still being improved as of 2.12 - I filed/posted some related issue to the last one recently with the freetype devel, only a week or two ago.
I thought I commented elsewhere - see also https://github.com/rougier/freetype-py/issues/154 - some of the colour font formats requires libpng . It is an optional dependency of freetype: without it, a few font formats don't work.
Google Noto is a family of free fonts. Within it, NotoColorEmoji contains all emojis, but no regular characters. It can be downloaded from the official site: https://www.google.com/get/noto/
Emscripten's port of FreeType fails to read NotoColorEmoji, but the same code works compiled natively.
Test program:
Output: