unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#58632: Setting Apple's emoji font on macOS in daemon mode
@ 2022-10-19 12:20 Tor Kringeland
  2022-10-19 13:27 ` Robert Pluim
  0 siblings, 1 reply; 3+ messages in thread
From: Tor Kringeland @ 2022-10-19 12:20 UTC (permalink / raw)
  To: 58632

Minimal reproducing example:

Run

  emacs -Q --daemon --eval "(set-fontset-font t 'unicode \"Apple Color Emoji\")"

and insert an emoji.  It will not be rendered by the Apple Color Emoji
font.  This wasn't the case on the build from a week or two ago (and
builds for many months before that).  It works if I do not run Emacs in
daemon mode or explicitly set the font after having connected a client.
Is this a bug or is there another way I should specify the emoji font?

(Using an Emacs build from today's sources.)




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#58632: Setting Apple's emoji font on macOS in daemon mode
  2022-10-19 12:20 bug#58632: Setting Apple's emoji font on macOS in daemon mode Tor Kringeland
@ 2022-10-19 13:27 ` Robert Pluim
  2023-09-03  9:31   ` Stefan Kangas
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Pluim @ 2022-10-19 13:27 UTC (permalink / raw)
  To: Tor Kringeland; +Cc: 58632

>>>>> On Wed, 19 Oct 2022 12:20:53 +0000, Tor Kringeland <tor.kringeland@ntnu.no> said:

    Tor> Minimal reproducing example:
    Tor> Run

    Tor>   emacs -Q --daemon --eval "(set-fontset-font t 'unicode \"Apple Color Emoji\")"

    Tor> and insert an emoji.  It will not be rendered by the Apple Color Emoji
    Tor> font.  This wasn't the case on the build from a week or two ago (and
    Tor> builds for many months before that).

I find that surprising, Iʼd expect it to never work. Can you identify
exactly when it changed? And please do

    (set-fontset-font t 'emoji \"Apple Color Emoji\")

What you have slows down font lookup for all codepoints.

    Tor> It works if I do not run Emacs in
    Tor> daemon mode or explicitly set the font after having connected a client.
    Tor> Is this a bug or is there another way I should specify the emoji font?

Emacs in daemon mode doesnʼt have a gui frame to work with, so things
like setting fonts tend not to work [1]. You can either use
`default-frame-alist' to set the `font' frame parameter, or you can
add code to `server-after-make-frame-hook' to set it.

Iʼm not saying there isnʼt a bug, but Iʼm not saying there is one
either 😀

Robert

Footnotes:
[1]  Iʼll admit to not understanding the attraction of daemon-mode,
     but I guess tastes differ.

-- 





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#58632: Setting Apple's emoji font on macOS in daemon mode
  2022-10-19 13:27 ` Robert Pluim
@ 2023-09-03  9:31   ` Stefan Kangas
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Kangas @ 2023-09-03  9:31 UTC (permalink / raw)
  To: Robert Pluim; +Cc: Tor Kringeland, 58632-done

Robert Pluim <rpluim@gmail.com> writes:

>>>>>> On Wed, 19 Oct 2022 12:20:53 +0000, Tor Kringeland <tor.kringeland@ntnu.no> said:
>
>     Tor> Minimal reproducing example:
>     Tor> Run
>
>     Tor>   emacs -Q --daemon --eval "(set-fontset-font t 'unicode \"Apple Color Emoji\")"
>
>     Tor> and insert an emoji.  It will not be rendered by the Apple Color Emoji
>     Tor> font.  This wasn't the case on the build from a week or two ago (and
>     Tor> builds for many months before that).
>
> I find that surprising, Iʼd expect it to never work. Can you identify
> exactly when it changed? And please do
>
>     (set-fontset-font t 'emoji \"Apple Color Emoji\")
>
> What you have slows down font lookup for all codepoints.

More information was requested, but none was given within close to a
year, so I'm closing this bug.  If this is still an issue, please reply
to this email (use "Reply to all" in your email client) and we can
reopen the bug report.

>
>     Tor> It works if I do not run Emacs in
>     Tor> daemon mode or explicitly set the font after having connected a client.
>     Tor> Is this a bug or is there another way I should specify the emoji font?
>
> Emacs in daemon mode doesnʼt have a gui frame to work with, so things
> like setting fonts tend not to work [1]. You can either use
> `default-frame-alist' to set the `font' frame parameter, or you can
> add code to `server-after-make-frame-hook' to set it.
>
> Iʼm not saying there isnʼt a bug, but Iʼm not saying there is one
> either 😀
>
> Robert
>
> Footnotes:
> [1]  Iʼll admit to not understanding the attraction of daemon-mode,
>      but I guess tastes differ.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-09-03  9:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-19 12:20 bug#58632: Setting Apple's emoji font on macOS in daemon mode Tor Kringeland
2022-10-19 13:27 ` Robert Pluim
2023-09-03  9:31   ` Stefan Kangas

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).