0

I just want to create an image which contains some text. This text can contain emojis. I'm using the "Segoe UI Emoji" font, and call:

var fontName = "Segoe UI Emoji";
var font = new Font(fontName, 48, FontStyle.Regular);
var textFormat = new StringFormat
{
  Trimming = StringTrimming.None
};
graphics.DrawString("😎 some text 🎉", font, Brushes.Black, new RectangleF(80, 400, width - 160, height - 460), textFormat);

then the emojis are black and white in the resulting image... How could I render them in color?

4
  • 2
  • that doesn't answer my question...
    – jcmag
    Commented Mar 13 at 22:37
  • 2
    That's not possible. The text rendering engine used by System.Drawing does not have that feature. It requires a more modern one, based on DirectWrite and OpenType font support. Commented Mar 13 at 23:36
  • Do you know a library with such support?
    – jcmag
    Commented Mar 14 at 0:26

0

Browse other questions tagged or ask your own question.