title: How can I render colored glyphs from "Segoe UI Emoji" with freetype?
body: <p>I'm trying to render the colored glyphs from the Windows "Segoe UI Emoji"-Font with the latest freetype 2.8.1 (I compiled the x64 debug version from the source code without single- or multithreaded) and OpenGL. So I use the <code>seguiemj.ttf</code> from the <code>Windows\Fonts</code> directory (SHA256 = <code>d67717a6fe84e21bc580443add16ec920e6988ca067041d0461c641f75074a8c</code>), but FT_HAS_COLOR always returns false.
  I also tried it with the <a href="https://github.com/eosrei/emojione-color-font/releases/download/v1.3/EmojiOneColor-SVGinOT-1.3.zip" rel="noreferrer"><code>EmojiOneColor-SVGinOT.ttf</code></a> by <a href="https://github.com/eosrei/EmojiOne-Color-Font" rel="noreferrer">eosrei from github</a>, which results in the same behaviour.</p>
  
  <p>When using <a href="https://github.com/emojione/emojione/raw/2.2.7/assets/fonts/emojione-android.ttf" rel="noreferrer">this</a> file for android, <code>FT_HAS_COLOR</code> returns true and the bitmap slot doesn't gets filled anyway.</p>
  
  <pre><code>FT_Library library;
  FT_Face face;
  
  FT_Init_FreeType(&amp;library);
  FT_New_Face(library, "resources/fonts/seguiemj.ttf", 0, &amp;face);
  
  bool has_color = FT_HAS_COLOR(face);
  debug(LOG_INFO, 0, "font has colors: %s", has_color ? "yes" : "no");
  
  std::u32string s = U"       ";
  
  FT_GlyphSlot slot = face-&gt;glyph;
  for (auto c : s)
  {
     int glyph_index = FT_Get_Char_Index(face, c);
  
     FT_Error error = FT_Load_Glyph(face, glyph_index, FT_LOAD_DEFAULT|FT_LOAD_COLOR);
     if (error)
         continue;
  
     error = FT_Render_Glyph(slot, FT_RENDER_MODE_NORMAL);
     if (error)
         continue;
  
     if (slot-&gt;bitmap.pixel_mode == FT_PIXEL_MODE_BGRA)
         debug(LOG_INFO, 0, "glyph is colored");
  
     ...
  }
  </code></pre>
  
  <p>Basically I use the above code, that is only able to receive the monochrome bitmap of that font files and the pixel mode is always FT_PIXEL_MODE_GRAY.</p>
  
  <p>Emojis in Word/Firefox</p>
  
  <p><a href="https://i.stack.imgur.com/q27K4.png" rel="noreferrer"><img src="https://i.stack.imgur.com/q27K4.png" alt="Emojis in Word/Firefox"></a></p>
  
  <p>Emojis in my applicaton</p>
  
  <p><a href="https://i.stack.imgur.com/8stj7.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8stj7.png" alt="Emojis in my applicaton"></a></p>
  
  <p>Is there something to fix that or did I something wrong?</p>