summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2019-04-27 14:43:19 +0900
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2019-04-27 14:43:19 +0900
commit28220664714c50996d8318788289e1c69d69b8ab (patch)
tree975c29024a5d8341001337c584064ad20549b6bc
parentdfa7f367a0b8987f21f36f6fdf81a45fea8b3d08 (diff)
downloademacs-28220664714c50996d8318788289e1c69d69b8ab.tar.gz
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.
-rw-r--r--etc/NEWS6
-rw-r--r--src/macfont.m6
2 files changed, 9 insertions, 3 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 721ebb2dedd..cf6f4fea3e9 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 59627823fae..d8e86201f53 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