From b136f150b4e230db7901af0d88d3c91a3a4c9e7c Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Fri, 30 Mar 2018 16:31:53 +0800 Subject: pangowin32-fontmap.c: Add an Emoji font family Add an Emoji font family that maps to the following fonts in this order (by fallback): Segoe UI Emoji Segoe UI Symbol Segoe UI This will enable Emoji to be displayed correctly in GTK+ apps (without the use of FontConfig) on Windows Vista and later, providing that one of the aforementioned fonts are installed. Note that this only enables Emoji display (*not* colored ones) as achieving colored Emoji requires PangoWin32 and Cairo to be ported to Direct2D and DirectWrite from Uniscribe and GDI, as Uniscribe and GDI does not support colored Emoji. https://bugzilla.gnome.org/show_bug.cgi?id=794705 --- pango/pangowin32-fontmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pango/pangowin32-fontmap.c b/pango/pangowin32-fontmap.c index a828136d..12fa4f26 100644 --- a/pango/pangowin32-fontmap.c +++ b/pango/pangowin32-fontmap.c @@ -462,7 +462,8 @@ static const char * const builtin_aliases[] = { "sans-serif = \"dejavu sans,tahoma,arial unicode ms,lucida sans unicode,browallia new,mingliu,simhei,gulimche,ms gothic,sylfaen,kartika,latha,mangal,raavi\"", "serif = \"dejavu serif,georgia,angsana new,mingliu,simsun,gulimche,ms gothic,sylfaen,kartika,latha,mangal,raavi\"", "mono = \"dejavu sans mono,courier new,lucida console,courier monothai,mingliu,simsun,gulimche,ms gothic,sylfaen,kartika,latha,mangal,raavi\"", - "monospace = \"dejavu sans mono,courier new,lucida console,courier monothai,mingliu,simsun,gulimche,ms gothic,sylfaen,kartika,latha,mangal,raavi\"" + "monospace = \"dejavu sans mono,courier new,lucida console,courier monothai,mingliu,simsun,gulimche,ms gothic,sylfaen,kartika,latha,mangal,raavi\"", + "emoji = \"segoe ui emoji,segoe ui symbol,segoe ui\"", }; static void -- cgit v1.2.1