all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Kévin Le Gouguec" <kevin.legouguec@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: use-default-font-for-symbols vs. emojis (was: Wrestling with set-fontset-font)
Date: Fri, 27 Dec 2019 19:52:49 +0100	[thread overview]
Message-ID: <87mubd61oe.fsf@gmail.com> (raw)
In-Reply-To: 878sn2hps2.fsf@gmail.com

> From: Eli Zaretskii <eliz@gnu.org>
> Emacs by default prefers using the default font for displaying symbol
> and punctuation characters, if that font supports them.  Set
> use-default-font-for-symbols to nil to force Emacs always select the
> font according to your fontsets, when it needs to display such
> characters, even if the default font can display them.

Thank you!  (Note to self: when Info and Custom fail, there's always C-h
v *keyword TAB…)

*skims comment in fontset.c:face_for_char*

How interesting!

>          However, these considerations are unlikely to be relevant to
>          punctuation and other symbols, since the latter generally
>          aren't specific to any culture, and don't require
>          sophisticated OTF features.  */

Do emojis challenge this heuristic, since

- they can typically use "sophisticated OTF features" such as color,
- combining sequences[1] are a thing?

If so, could/should there be a way to distinguish "emoji" characters
from the more general "symbol" script, using e.g. data from
<https://unicode.org/Public/emoji/12.1/>?

(I hope at least /some/ of the above makes sense.  My knowledge of
Fonts, the Unicode and Everything is anecdotal at best…)


PS: Sorry for not replying to your message Eli; I'm not subscribed to
    help-gnu-emacs, and I can't find an NNTP feed for it…


[1] E.g. 🧟‍♂️, 🧟‍♀️, 🐕‍🦺, 🏴‍☠️, from
    <https://unicode.org/Public/emoji/12.1/emoji-zwj-sequences.txt>, or
    flag sequences from
    <https://unicode.org/Public/emoji/12.1/emoji-sequences.txt>; none of
    which work inside Emacs yet AFAICT.

    To be more precise: as of commit 9ee5af31, these examples appear
    "decombined".  I have no idea what controls this (Harfbuzz? Cairo?)…

    FWIW, on Debian Buster, these combinations work for some of XFCE's
    applications (e.g. Thunar, Mousepad) but not others (e.g. Terminal).
    (Well, some of these combinations anyway.  No application seems to
    give the faithful U+1F415 U+200D U+1F9BA the love it deserves…)



  parent reply	other threads:[~2019-12-27 18:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-23 18:15 Wrestling with set-fontset-font Kévin Le Gouguec
2019-12-23 20:02 ` Eli Zaretskii
2019-12-27 18:52 ` Kévin Le Gouguec [this message]
2019-12-27 20:20   ` use-default-font-for-symbols vs. emojis (was: Wrestling with set-fontset-font) Eli Zaretskii
2019-12-27 20:32     ` use-default-font-for-symbols vs. emojis Eli Zaretskii
2019-12-27 23:40       ` Kévin Le Gouguec
2019-12-28  7:40         ` Eli Zaretskii
2019-12-29 16:14           ` Kévin Le Gouguec

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

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

  git send-email \
    --in-reply-to=87mubd61oe.fsf@gmail.com \
    --to=kevin.legouguec@gmail.com \
    --cc=help-gnu-emacs@gnu.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.