emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 2822066: Update multicolor font support status


From: YAMAMOTO Mitsuharu
Subject: [Emacs-diffs] master 2822066: Update multicolor font support status
Date: Sat, 27 Apr 2019 01:44:13 -0400 (EDT)

branch: master
commit 28220664714c50996d8318788289e1c69d69b8ab
Author: YAMAMOTO Mitsuharu <address@hidden>
Commit: YAMAMOTO Mitsuharu <address@hidden>

    Update multicolor font support status
    
    * etc/NEWS: Mention multicolor font support on Cairo and NS.
    * src/macfont.m (macfont_list): Re-enable color bitmap fonts.
---
 etc/NEWS      | 6 ++++++
 src/macfont.m | 6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/etc/NEWS b/etc/NEWS
index 721ebb2..cf6f4fe 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -337,6 +337,9 @@ longer.
    directories searched for byte-compiler error messages (this used to
    be controlled by compilation-search-path).
 
+** Multicolor fonts such as "Noto Color Emoji" can be displayed on
+Emacs configured with Cairo drawing and linked with cairo >= 1.16.0.
+
 
 * Editing Changes in Emacs 27.1
 
@@ -1977,6 +1980,9 @@ modifier keys in line with Apples guidelines.  This makes 
the drag and
 drop behaviour more consistent, as previously the sending application
 was able to 'set' modifiers without the knowledge of the user.
 
+** On NS multicolor font display is enabled again since it is also
+implemented in Emacs on free operating systems via Cairo drawing.
+
 
 ----------------------------------------------------------------------
 This file is part of GNU Emacs.
diff --git a/src/macfont.m b/src/macfont.m
index 5962782..d8e8620 100644
--- a/src/macfont.m
+++ b/src/macfont.m
@@ -2344,9 +2344,9 @@ macfont_list (struct frame *f, Lisp_Object spec)
                   != (spacing >= FONT_SPACING_MONO)))
             continue;
 
-          /* Don't use a color bitmap font until it is supported on
-            free platforms.  */
-          if (sym_traits & kCTFontTraitColorGlyphs)
+          /* Don't use a color bitmap font unless its family is
+             explicitly specified.  */
+          if ((sym_traits & kCTFontTraitColorGlyphs) && NILP (family))
             continue;
 
           if (j > 0



reply via email to

[Prev in Thread] Current Thread [Next in Thread]