From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: chad Newsgroups: gmane.emacs.devel Subject: Re: Entering emojis Date: Mon, 8 Nov 2021 11:52:24 -0800 Message-ID: References: <87cznths5j.fsf@gnus.org> <83zgqxymd3.fsf@gnu.org> <878rygj4gt.fsf@gnus.org> <83wnm0zz0q.fsf@gnu.org> <874k94j3rn.fsf@gnus.org> <83v91kzydh.fsf@gnu.org> <87tuh4holf.fsf@gnus.org> <822aec9d01909cecfc6c@heytings.org> <87a6iwhltf.fsf@gnus.org> <83tuh4zfg5.fsf@gnu.org> <87y26gfobr.fsf@gnus.org> <87tuh4f1ie.fsf@gnus.org> <83tuh2wuwa.fsf@gnu.org> <87pmrqod9f.fsf@gmail.com> <87wnlymx96.fsf@gmail.com> <875ytibomf.fsf@gnus.org> <87zgquy4xm.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b56d0b05d04c559c" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23640"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , Gregory Heytings , Stefan Kangas , Eli Zaretskii , EMACS development team To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 08 20:54:01 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mkAiN-0005xH-EO for ged-emacs-devel@m.gmane-mx.org; Mon, 08 Nov 2021 20:53:59 +0100 Original-Received: from localhost ([::1]:43548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mkAiM-0006WQ-1e for ged-emacs-devel@m.gmane-mx.org; Mon, 08 Nov 2021 14:53:58 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39766) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkAh8-0004ni-SC for emacs-devel@gnu.org; Mon, 08 Nov 2021 14:52:44 -0500 Original-Received: from [2a00:1450:4864:20::12c] (port=36380 helo=mail-lf1-x12c.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mkAh5-0000Y7-Jk for emacs-devel@gnu.org; Mon, 08 Nov 2021 14:52:41 -0500 Original-Received: by mail-lf1-x12c.google.com with SMTP id j2so38858736lfg.3; Mon, 08 Nov 2021 11:52:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BBnPQpdcmhTK4WpKaudgKlvvAtb29HIxv3STrAr9cQU=; b=h3RIYsM95kakq3Jn7K7FCg7R1+W5tTdRnLD6H+sbKF5N94uV3luV8Ph4JOrDx8BvOS Oy8Levv+SE78kiCeXDEfPgXX7QC+tYDtJYGmlB/VOnq+v08jhJqyohsw5FMO5lI8kHSZ NY+AzcXXnTwfQfJwDy1olxU4mcttNsFncVxQLO9FsqyHoYw7w/i30cT3FkZfBdzdoXwL qBzTT1ZjFJVZ4DDtHkyztylHuZ4DiMKUAzrRI4Svgr3vqi/Lp84+XyFIGWadvj4b3w5N mBagxRxoaAVS4Aj/wV0+hPTI7nZNij8Oo27NRgXcAE1htOhIiaBF4llSr3PdCHAiJm9t Qicw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BBnPQpdcmhTK4WpKaudgKlvvAtb29HIxv3STrAr9cQU=; b=NQOTqMN5RW01T1h0fIUGRhJYIA7b/utyeVP/VxIkdVk2GcQOrJF1DLfPGKxVFQog8C ArKk3HvASZuRTqdiyUMlgkTKgFbRklHU4oD86mBQDPoCxVUFYu7HgVdGl1+xmVZbiRsh Lw8MvJ/VNWotG3uw8OdOXCURxVYKcK91qCdZgID5Aow2YDiEjo58jVZgbcFW4Huv3UTM uyi4jNzcIAkQRn1oJyHNa5Dim2eLXz3VzaTsAlNJeI4AHH56YvCwcQ+YOc1F6cH3PV5E ODvdzVOTUWVRHABOqkM4cwtS0Am3YSYC2d9hPzmSjNSylXSEfTmKd1P7PUVFqIzHLQij dCmg== X-Gm-Message-State: AOAM532wtCqrorT/mcolZ664a1U+czdCwN19PjzqqOV1SOqn0QPyqqU9 NkkcNGk/uzNudiO7PJlKjYJ+2AG9F5bf24BN9cI= X-Google-Smtp-Source: ABdhPJwo2fzlpkAk+y7VsKA89R5ritL76cS+3Io8XXLvudDgVdD4QtZDTESZnh6fiTNYSMHBDmP4t4k6qdteQM/L7EY= X-Received: by 2002:a05:6512:398d:: with SMTP id j13mr1623879lfu.19.1636401157597; Mon, 08 Nov 2021 11:52:37 -0800 (PST) In-Reply-To: <87zgquy4xm.fsf@gmail.com> X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::12c (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=yandros@gmail.com; helo=mail-lf1-x12c.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:279056 Archived-At: --000000000000b56d0b05d04c559c Content-Type: text/plain; charset="UTF-8" On Wed, Oct 27, 2021 at 6:53 AM Robert Pluim wrote: > > commit d3c78393b1 > Author: Robert Pluim > AuthorDate: Wed Oct 27 15:24:48 2021 +0200 > Commit: Robert Pluim > 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))) > continue; > > - /* 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, ~Chad --000000000000b56d0b05d04c559c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

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

=C2=A0 =C2=A0 Don't skip color fonts on macOS

=C2=A0 =C2=A0 This allows emoji to be displayed using a Color Emoji font wi= thout
=C2=A0 =C2=A0 the user having to use 'set-fontset-font'.

=C2=A0 =C2=A0 * 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 CTFontDescriptorCreateMatchingFontDescript= or (no
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0!=3D (= spacing >=3D FONT_SPACING_MONO)))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0continue;

-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 /* Don't use a color bitmap font un= less its family is
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0explicitly specified.=C2= =A0 */
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if ((sym_traits & kCTFontTraitColor= Glyphs) && NILP (family))
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 continue;
-
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if (j > 0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0&& !macfont_= supports_charset_and_languages_p (desc, charset,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0chars,= languages))


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

Hope that helps,
~Chad
= =C2=A0
--000000000000b56d0b05d04c559c--