unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Will Chang <will.b.chang@gmail.com>
Cc: 54441@debbugs.gnu.org
Subject: bug#54441: 28.0.92; set-language-environment causes Apple Color Emoji cannot show up
Date: Fri, 18 Mar 2022 08:51:26 +0200	[thread overview]
Message-ID: <83a6dnhhxt.fsf@gnu.org> (raw)
In-Reply-To: <CAGe6RqR890yAEMV9z=fb2N6Nn8RO0XVv=CEn4hYpuNveWzkavA@mail.gmail.com> (message from Will Chang on Fri, 18 Mar 2022 11:41:00 +0800)

> From: Will Chang <will.b.chang@gmail.com>
> Date: Fri, 18 Mar 2022 11:41:00 +0800
> 
> (set-fontset-font "fontset-default" 'unicode "Apple Color Emoji" nil 'prepend)
> 
> (set-language-environment "UTF-8")
> 
> Steps to reproduce:
> 1. eval-buffer and the emoji doesn't show up correctly.
> 2. Comment out (set-language-environment "UTF-8") and run eval-buffer
> the emoji shows up correctly.

Please tell:

  . does this happen in "emacs -Q", if you evaluate the above
    immediately upon entering Emacs?
  . what is the language environment before the evaluation of
    set-language-environment above?
  . what is the output of "M-x describe-fontset RET fontset-default RET"
    after evaluating set-language-environment, in particular in the
    Emoji block starting from #x1F600?
  . what did you mean by "emoji doesn't show up correctly"? how was it
    displayed "incorrectly"?

And I have 2 comments, which may or may not be relevant to this issue:

 1) It is a very bad idea to do the likes of

    (set-fontset-font "fontset-default" 'unicode "Apple Color Emoji" nil 'prepend)

    That's because the character set 'unicode spans the entire range
    of Unicode characters, and there's no single font that can
    possibly support all of those characters.

 2) You should set the language environment _before_ any other
    customizations related to character sets and fonts, because the
    language environment affects those customizations.

Thanks.





  reply	other threads:[~2022-03-18  6:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-18  3:41 bug#54441: 28.0.92; set-language-environment causes Apple Color Emoji cannot show up Will Chang
2022-03-18  6:51 ` Eli Zaretskii [this message]
     [not found]   ` <CAGe6RqR4U=ha8G967=+YEeS_bLUkSXRLAZKRrNGBY6kHkHxa-g@mail.gmail.com>
2022-03-19  6:53     ` Eli Zaretskii
2022-03-19  8:51       ` Will Chang
2022-03-19  9:24         ` Will Chang
2022-03-19  9:33           ` Eli Zaretskii
2022-03-19  9:36             ` Will Chang
2022-03-19 10:24               ` Eli Zaretskii

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=83a6dnhhxt.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=54441@debbugs.gnu.org \
    --cc=will.b.chang@gmail.com \
    /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).