From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#44020: 28.0.50; Prefer selection of colour emoji fonts? Date: Mon, 19 Oct 2020 21:00:03 +0200 Message-ID: References: <87tuuvtl5n.fsf@gnus.org> <83tuuvwcd8.fsf@gnu.org> <87imba4454.fsf@gnus.org> <83k0vmp8n8.fsf@gnu.org> <83zh4inj4y.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12930"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44020@debbugs.gnu.org, larsi@gnus.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 19 21:03:57 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1kUaRp-0003EB-06 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Oct 2020 21:03:57 +0200 Original-Received: from localhost ([::1]:59878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUaRo-0000tT-05 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Oct 2020 15:03:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUaP1-0006xs-LJ for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2020 15:01:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59100) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kUaP0-0000gp-5e for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2020 15:01:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kUaP0-00089a-3E for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2020 15:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Oct 2020 19:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44020 X-GNU-PR-Package: emacs Original-Received: via spool by 44020-submit@debbugs.gnu.org id=B44020.160313401531270 (code B ref 44020); Mon, 19 Oct 2020 19:01:02 +0000 Original-Received: (at 44020) by debbugs.gnu.org; 19 Oct 2020 19:00:15 +0000 Original-Received: from localhost ([127.0.0.1]:42413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUaOF-00088I-Bz for submit@debbugs.gnu.org; Mon, 19 Oct 2020 15:00:15 -0400 Original-Received: from mail-wr1-f51.google.com ([209.85.221.51]:36990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUaOD-000883-Ue for 44020@debbugs.gnu.org; Mon, 19 Oct 2020 15:00:14 -0400 Original-Received: by mail-wr1-f51.google.com with SMTP id h7so928122wre.4 for <44020@debbugs.gnu.org>; Mon, 19 Oct 2020 12:00:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=/O37oru3lxSL2ibR7VUXYgFI3FEu2rJjvK4VStVLdDU=; b=BaM5ZFoQXTOg1h28KW3wLwJqgidU39+NdSH28tMuSDTS2d3cNz4ICQYoQbRxYVygVS TacuQ/ICrKeqwontGXBgS3tQHPTqDQfWtquw35YZP35Gi+mHg6wAoPApz1MmDc6Joyo8 VCl60NixkVdlLYmVgxj+PSxHXWGX1u6ocsiciG4LthJLOLSHlBS/28raYiatDfUEjeq1 /g3HJbgtnTkbhdRa9HzjFRyNIYG8+sNkW/+V2/md/Qzsj116YkygxeC8D4MLCcoGkFkk dcZlSLm54xBWIqYCbL74Eg8QwJ+TgkeyM4AzNU+nC/r3lYeMKynJwn7jTbnkkYDOCP+H ssSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=/O37oru3lxSL2ibR7VUXYgFI3FEu2rJjvK4VStVLdDU=; b=Sqael2Wnk8jBdUc4Qyh7C2icsgRJ8lFFROxzGmo/i8jm1gw0v1EHbsAeb5OhoZFNXe nkhhRuyrmGyC/EIt+Ae70AKbUWc5IuCad1XjxW44gzpbeeKHBZB1aSOOkykh+MpUcNhd D7TiQycAkFhDmIahv+r5ws/F6Jn0fAXnTRl879cJJRUkGPWnZNMCKtTxlHJpGUAnQ4Ab DmiCAlhbf06j9DaGQ5UhNJBUCcFEkFMjRwmfkCktH5pX3hR/Y3/xI1MNWSTWwEK4xEa5 2X7xeY5pgI2XhW6oGkAJotiv/a4Xd+GY6PS92nXF3ESHFccl8f9qgphOeVmLWTtWeQ5w Whbw== X-Gm-Message-State: AOAM531yq0I0VyJ7Y3iQYc2Ofr9enrMiR67hUJ/2haEMEkS1FwqSixeN MyRZzlPTo8VlGt6KbOT5CyU= X-Google-Smtp-Source: ABdhPJziHfZ9XmGNKzPHDv8NJWz5TVa/9Q1WCe8hf6vWcqLpHtqLJqVv2HGE4KMcDHmSzvPDTkqf1A== X-Received: by 2002:adf:bc13:: with SMTP id s19mr761743wrg.338.1603134007907; Mon, 19 Oct 2020 12:00:07 -0700 (PDT) Original-Received: from rpluim-mac ([2a01:e34:ecfc:a860:4453:8239:2ff5:dfe4]) by smtp.gmail.com with ESMTPSA id t13sm602043wmj.15.2020.10.19.12.00.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2020 12:00:06 -0700 (PDT) In-Reply-To: <83zh4inj4y.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 19 Oct 2020 21:52:13 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:191031 Archived-At: >>>>> On Mon, 19 Oct 2020 21:52:13 +0300, Eli Zaretskii said: >> From: Robert Pluim >> Cc: 44020@debbugs.gnu.org, larsi@gnus.org >> Date: Mon, 19 Oct 2020 20:34:41 +0200 >>=20 >> (set-fontset-font t 'emoji '("Apple Color Emoji . "iso1064601") nil >> 'prepend) >>=20 >> It *should* work as-is on GNU/Linux, but for some reason Emacs is >> completely refusing to use any Emoji fonts for me there. It=CA=BCs p= ossible >> I=CA=BCve messed up my system somehow, since emacs-27 has the same i= ssue, >> but I=CA=BCm seeing some very suspicious results from >> ftcrfont_glyph_extents (the font average width is always 0), so perh= aps >> we need to adjust our font code. Eli> Didn't someone say they can see color emoji on Cairo? Lars said he could, and it=CA=BCs in the NEWS file, so it worked at some point. I can=CA=BCt get either Noto Color Emoji nor Emoji One to work on GNU/Linux, because the following code in font.c bugs out /* We always open a font of manageable size; i.e non-zero average width and height. */ for (psize =3D pixel_size; ; psize++) { font_object =3D driver_list->driver->open_font (f, entity, psize); if (NILP (font_object)) return Qnil; font =3D XFONT_OBJECT (font_object); if (font->average_width > 0 && font->height > 0) break; /* Avoid an infinite loop. */ if (psize > pixel_size + 15) return Qnil; <=3D=3D=3D=3D=3D=3D here } and that=CA=BCs because font->average_width is always 0. Robert --=20