I've been trying to render the "💯" emoji using Skia on the Skia Fiddle platform, but it's not displaying as expected. Here's the code snippet I'm using:
void draw(SkCanvas* canvas) {
const char* fontFamily = nullptr; // Default system family, if it exists.
SkFontStyle fontStyle; // Default is normal weight, normal width, upright slant.
sk_sp<SkTypeface> typeface = fontMgr->legacyMakeTypeface(fontFamily, fontStyle);
SkFont font1(typeface, 64.0f, 1.0f, 0.0f);
SkPaint paint1;
paint1.setAntiAlias(true);
paint1.setColor(SkColorSetARGB(0xFF, 0x42, 0x85, 0xF4));
canvas->clear(SK_ColorWHITE);
canvas->drawSimpleText("été 💯", strlen("été 💯"),
SkTextEncoding::kUTF8, 20.0f, 64.0f, font1, paint1);
}
https://fiddle.skia.org/c/29711605f622144ce10fe89d95db1b52The text "été" is rendered correctly, but the "💯" emoji is not showing up. What could be causing this issue, and how can I fix it to display the emoji correctly on Skia Fiddle? I have the same problem under my app that run under windows