I recently got colored emojis working in the current 6.0 version by supporting color-tables stored in font-files.
I took the code from the mentioned issue and expanded from there.
See
this commit (and
this for a small optimization)
Note there are 2 Versions of color-tables (Version 0 and Version 1).
https://learn.microsoft.com/en-us/typog ... /spec/colrVersion 0 basically supports only "flat" colors per layer.
Version 1 is more advanced, supporting gradients and such.
The code in the commit ONLY supports version 0 tables
I have to admit i'm absolutely NOT an expert regarding encodings, font-handling and what have you; so be aware the code may contain flaws that are not obvious to me.
That said, i testet this successfully with the
Segoe UI Emoji font, which has a version 0 color table.
I also added a
test-case to render all characters supported by a certain font.
All characters of the mentioned Emoji font showed up correctly (as far as i can tell).
I'm not 100% certain, but it should not be too hard to port this to 1.5, if you need it there.