[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-28 e3171e7: Allow automatic use of color fonts for emoji on macOS
From: |
Robert Pluim |
Subject: |
emacs-28 e3171e7: Allow automatic use of color fonts for emoji on macOS |
Date: |
Wed, 27 Oct 2021 12:59:57 -0400 (EDT) |
branch: emacs-28
commit e3171e7e860f77156873f13161a8833a210bae37
Author: Robert Pluim <rpluim@gmail.com>
Commit: Robert Pluim <rpluim@gmail.com>
Allow automatic use of color fonts for emoji on macOS
* src/macfont.m (macfont_list): Don't exclude color fonts when the
fontspec has an 'emoji' script specification.
---
src/macfont.m | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/macfont.m b/src/macfont.m
index d86f09f..78ed5d5 100644
--- a/src/macfont.m
+++ b/src/macfont.m
@@ -2415,8 +2415,12 @@ macfont_list (struct frame *f, Lisp_Object spec)
continue;
/* Don't use a color bitmap font unless its family is
- explicitly specified. */
- if ((sym_traits & kCTFontTraitColorGlyphs) && NILP (family))
+ explicitly specified or we're looking for a font for
+ emoji. */
+ if ((sym_traits & kCTFontTraitColorGlyphs)
+ && NILP (family)
+ && !EQ (CDR_SAFE (assq_no_quit (QCscript, AREF (spec,
FONT_EXTRA_INDEX))),
+ Qemoji))
continue;
if (j > 0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-28 e3171e7: Allow automatic use of color fonts for emoji on macOS,
Robert Pluim <=