[pango] pangowin32-fontmap.c: Add an Emoji font family



commit b136f150b4e230db7901af0d88d3c91a3a4c9e7c
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Fri Mar 30 16:31:53 2018 +0800

    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 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/pango/pangowin32-fontmap.c b/pango/pangowin32-fontmap.c
index a828136..12fa4f2 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]