unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 44020@debbugs.gnu.org, larsi@gnus.org
Subject: bug#44020: 28.0.50; Prefer selection of colour emoji fonts?
Date: Mon, 19 Oct 2020 21:00:03 +0200	[thread overview]
Message-ID: <m27drmdoss.fsf@gmail.com> (raw)
In-Reply-To: <83zh4inj4y.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 19 Oct 2020 21:52:13 +0300")

>>>>> On Mon, 19 Oct 2020 21:52:13 +0300, Eli Zaretskii <eliz@gnu.org> said:

    >> From: Robert Pluim <rpluim@gmail.com>
    >> Cc: 44020@debbugs.gnu.org,  larsi@gnus.org
    >> Date: Mon, 19 Oct 2020 20:34:41 +0200
    >> 
    >> (set-fontset-font t 'emoji '("Apple Color Emoji . "iso1064601") nil
    >> 'prepend)
    >> 
    >> 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ʼs possible
    >> Iʼve messed up my system somehow, since emacs-27 has the same issue,
    >> but Iʼm seeing some very suspicious results from
    >> ftcrfont_glyph_extents (the font average width is always 0), so perhaps
    >> 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ʼs in the NEWS file, so it worked at some
point. I canʼt 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 = pixel_size; ; psize++)
    {
      font_object = driver_list->driver->open_font (f, entity, psize);
      if (NILP (font_object))
	return Qnil;
      font = XFONT_OBJECT (font_object);
      if (font->average_width > 0 && font->height > 0)
	break;
      /* Avoid an infinite loop.  */
      if (psize > pixel_size + 15)
	return Qnil; <====== here
    }

and thatʼs because font->average_width is always 0.

Robert
-- 





  reply	other threads:[~2020-10-19 19:00 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-15 18:10 bug#44020: 28.0.50; Prefer selection of colour emoji fonts? Lars Ingebrigtsen
2020-10-15 18:52 ` Eli Zaretskii
2020-10-16  8:19   ` Robert Pluim
2020-10-16 10:26     ` Eli Zaretskii
2020-10-16 10:38       ` Robert Pluim
2020-10-16 10:49         ` Eli Zaretskii
2020-10-16 19:30         ` Alan Third
2020-10-17  6:38           ` Lars Ingebrigtsen
2020-10-17  9:12             ` Eli Zaretskii
2020-10-18  8:09               ` Lars Ingebrigtsen
2020-10-18 15:02                 ` Eli Zaretskii
2020-10-19  8:35                   ` Lars Ingebrigtsen
2020-10-17 15:27             ` Alan Third
2020-10-17 15:51               ` Alan Third
2020-10-17  6:44           ` Eli Zaretskii
2020-10-19 19:11             ` Robert Pluim
2020-10-16 14:49     ` Lars Ingebrigtsen
2020-10-19 10:56       ` Robert Pluim
2020-10-19 14:55         ` Eli Zaretskii
2020-10-19 18:34           ` Robert Pluim
2020-10-19 18:52             ` Eli Zaretskii
2020-10-19 19:00               ` Robert Pluim [this message]
2020-10-19 19:03               ` Stephen Berman
2020-10-19 19:46                 ` Eli Zaretskii
2020-10-19 22:00                   ` Stephen Berman
2020-10-20  2:35                     ` Eli Zaretskii
2020-10-20  7:33                       ` Robert Pluim
2020-10-20  8:58                         ` Robert Pluim
2020-10-20 14:28                           ` Eli Zaretskii
2020-10-20 14:41                             ` Robert Pluim
2020-10-19 19:03             ` Stefan Kangas
2020-10-19 19:32               ` Robert Pluim
2020-10-19 19:47               ` Eli Zaretskii
2021-11-06 19:00 ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m27drmdoss.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=44020@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).