all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: use-default-font-for-symbols vs. emojis (was: Wrestling with set-fontset-font)
Date: Fri, 27 Dec 2019 22:20:57 +0200	[thread overview]
Message-ID: <835zi1pljq.fsf@gnu.org> (raw)
In-Reply-To: <87mubd61oe.fsf@gmail.com> (message from Kévin Le Gouguec on Fri, 27 Dec 2019 19:52:49 +0100)

> From: Kévin Le Gouguec <kevin.legouguec@gmail.com>
> Date: Fri, 27 Dec 2019 19:52:49 +0100
> 
> >          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?

We don't yet support these features, so they are largely irrelevant
for Emacs at this point.  And (sadly) I don't see anyone around who
knows enough and has enough motivation and energy to teach Emacs to
support that.

> 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/>?

If and when we need that, it will be almost trivial.  What's
non-trivial is to add support for color emoji.

> [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?)…

Could be a simple matter of defining more entries in
composition-function table to support these sequences (assuming the
font supports them).



  reply	other threads:[~2019-12-27 20:20 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 ` use-default-font-for-symbols vs. emojis (was: Wrestling with set-fontset-font) Kévin Le Gouguec
2019-12-27 20:20   ` Eli Zaretskii [this message]
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=835zi1pljq.fsf@gnu.org \
    --to=eliz@gnu.org \
    --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.