[Top][All Lists]

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

Re: Entering emojis

From: chad
Subject: Re: Entering emojis
Date: Mon, 8 Nov 2021 11:52:24 -0800

On Wed, Oct 27, 2021 at 6:53 AM Robert Pluim <rpluim@gmail.com> wrote:

commit d3c78393b1
Author:     Robert Pluim <rpluim@gmail.com>
AuthorDate: Wed Oct 27 15:24:48 2021 +0200
Commit:     Robert Pluim <rpluim@gmail.com>
CommitDate: Wed Oct 27 15:24:48 2021 +0200

    Don't skip color fonts on macOS

    This allows emoji to be displayed using a Color Emoji font without
    the user having to use 'set-fontset-font'.

    * src/macfont.m (macfont_list): Don't skip color fonts.

diff --git a/src/macfont.m b/src/macfont.m
index d86f09f485..4291375f3c 100644
--- a/src/macfont.m
+++ b/src/macfont.m
@@ -2414,11 +2414,6 @@ So we use CTFontDescriptorCreateMatchingFontDescriptor (no
                   != (spacing >= FONT_SPACING_MONO)))

-          /* Don't use a color bitmap font unless its family is
-             explicitly specified.  */
-          if ((sym_traits & kCTFontTraitColorGlyphs) && NILP (family))
-            continue;
           if (j > 0
               && !macfont_supports_charset_and_languages_p (desc, charset,
                                                             chars, languages))

(Still catching up from several weeks away.) 
If memory serves, this ability was added to the ns and mac ports back before it was functional in GNUstep or typical GNU/Linux distributions, and so someone (another memory says "RMS") asked that it not be enabled by default, to avoid making the macOS version of Emacs more featureful than the free versions. 
Since that's no longer true, if my memory is correct, this change should be a nice addition.

Hope that helps,

reply via email to

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