Yes, create and set a palette (or edit existing palette) for the emoji surface.
Not to be unhelpful, but at this point you should consider heading over to Stack Overflow where there is a larger group of people with more incentive to help out. It’s not just a couple lines of code.
There is also the possibility somebody has already done this or knows a better way.
Once you have the palette, you can use one of the SDL_ttf shaded functions that give you a surface with a palette format. Set your new palette to this surface and hopefully this will work.
A little off-topic, but will you be including a binary for Apple Silicon in the next release? I was able to build for Apple Silicon myself from source. Thanks.
you need SDL_ttf sources,
and Freetype may need to be compiled with FT_CONFIG_OPTION_USE_PNG
(define it in external/freetype-2.10.4/include/freetype/config/ftoption.h )
Are there still no plans to incorporate this in an official release? Building from source isn’t a practical option for me, given the wide range of platforms I support.