Windows 10: how to display colorful emojis instead of b&w emojis?

705 views
Skip to first unread message

Hector

unread,
May 19, 2021, 1:46:24 PM5/19/21
to wx-users
On Mac the emojis look great, but on Windows 10 they are black & white (even when I build my app with today's master from GitHub).

My app isn't the only one to have that issue, there's also the Windows File Explorer, NotePad, NotePad++, etc...

But other apps display the emojis nicely: the web browsers, the mail clients, the emoji panel, etc...

The only information I could find is that the b&w emojis correspond to an earlier release of the Segoe font:


How can I make my app to use the newer/nicer emojis on Windows 10? Thank you very much!

Igor Korot

unread,
May 19, 2021, 3:01:18 PM5/19/21
to wx-u...@googlegroups.com
Hi,
Which control do you use - wxTectCtrl, wxRTC, wxScintilla?

Thank you.

>
> --
> Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
>
> To unsubscribe, send email to wx-users+u...@googlegroups.com
> or visit http://groups.google.com/group/wx-users
> ---
> You received this message because you are subscribed to the Google Groups "wx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to wx-users+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/96bcb928-40e4-447a-86da-a2940428bff9n%40googlegroups.com.

Hector

unread,
May 19, 2021, 4:11:40 PM5/19/21
to wx-users
It happens everywhere, with a TextEntryDialog, or when I draw with a wxDC, or with a wxGraphicsContext.

PB

unread,
May 19, 2021, 4:28:08 PM5/19/21
to wx-users
Hector,

I think you might have actually answered yourself in your very first post.

I googled this a bit and it seems that the feature is called "Color Fonts". It appears that Color Fonts are not supported by the classic Win32 API (common controls, GDI) which wxWidgets and applications such as Notepad or File Explorer use. See https://docs.microsoft.com/en-us/windows/win32/directwrite/color-fonts

So may guess would be that unfortunately the only place where you may be able to use Color Fonts in a wxWidgets application would be inside wxWebViewEdge or drawing with the Direct2D renderer.

Regards,
PB

Hector

unread,
May 19, 2021, 5:23:35 PM5/19/21
to wx-users
Thank you very much for your answer. Too bad it's not possible on Windows, it works perfectly fine on Mac. The workarounds you suggest are unfortunately not a solution as I need it to work with wxTextEntryDialog. Indeed the users of my app tag things and the possibility of using emojis would have been really nice.
Reply all
Reply to author
Forward
0 new messages