emacs-devel
[Top][All Lists]
Advanced

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

Re: Entering emojis


From: Robert Pluim
Subject: Re: Entering emojis
Date: Wed, 27 Oct 2021 17:12:16 +0200

>>>>> On Wed, 27 Oct 2021 16:34:58 +0300, Eli Zaretskii <eliz@gnu.org> said:

    >> Anyway, if I delete the above, Apple Color Emoji is used for emoji.

    Eli> Do we have the 'emoji' script in AREF (spec, FONT_EXTRA_INDEX) in that
    Eli> function, when Emacs is looking for a font to display Emoji?  If so,
    Eli> we could refrain from the above condition only when a font for Emoji
    Eli> is being sought, and that could be safe enough for the release branch.

Yes. This seems to work so far.

diff --git a/src/macfont.m b/src/macfont.m
index d86f09f485..78ed5d53f3 100644
--- a/src/macfont.m
+++ b/src/macfont.m
@@ -2415,8 +2415,12 @@ So we use CTFontDescriptorCreateMatchingFontDescriptor 
(no
             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

Robert
-- 



reply via email to

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