Subject: Re: bug#54441: 28.0.92; set-language-environment causes Apple Color Emoji cannot show up

From: Will Chang <[email-masked]>
Date: Sat, 19 Mar 2022 17:36:17 +0800

Yes, it works well even after set-language-environment to UTF-8.

On Sat, Mar 19, 2022 at 5:33 PM Eli Zaretskii <[email-masked]> wrote:

> > From: Will Chang <[email-masked]>
> > Date: Sat, 19 Mar 2022 17:24:17 +0800
> > Cc: [email-masked],
> [email-masked]
> >
> > I searched this problem again and found:
> >
> https://www.reddit.com/r/emacs/comments/pmghug/how_to_correctly_display_multicharacter_emojis/
> > https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg01238.html
> >
> > The code below can solve the problem.
> >
> >   (set-fontset-font t 'emoji '("Apple Color Emoji" . "iso10646-1") nil
> 'prepend)
> >
> > or
> >
> >   (set-fontset-font t '(#x1f000 . #x1faff) (font-spec :family "Apple
> Color Emoji"))
>
> So if you use the above instead of your original set-fontset-font, the
> problem disappears, and the emoji are displayed correctly even after
> set-language-environment, is that right?
>