unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Kévin Le Gouguec" <kevin.legouguec@gmail.com>
To: Dan Jacobson <jidanni@jidanni.org>
Cc: Werner LEMBERG <wl@gnu.org>, 59606@debbugs.gnu.org
Subject: bug#59606: flags take up so many columns
Date: Tue, 29 Nov 2022 08:44:06 +0100	[thread overview]
Message-ID: <87tu2iciih.fsf@gmail.com> (raw)
In-Reply-To: <87fse3lcek.8.fsf@jidanni.org> (Dan Jacobson's message of "Mon, 28 Nov 2022 02:18:59 -0600")

[-- Attachment #1: Type: text/plain, Size: 1359 bytes --]

Dan Jacobson <jidanni@jidanni.org> writes:

> OK, sorry. It must be the noto fonts.
> '"No Tofu" font families with large Unicode coverage'.

Yes, as the describe-char output you posted confirms, Emacs defaults to
Noto Color Emoji (when available) to display emoji (specifically those
that either have Emoji_Presentation=Yes, or those that are followed by
VS-16.  Compare ⚠ with ⚠️).

So nothing surprising there, AFAIU.

> I suppose I will have to take it up with them.

Unless I missed something, you still haven't described what you are
seeing precisely (specifically, how many columns each emoji takes on
your setup), so it is not clear what you wish to "take up" to the Noto
developers.

(FWIW, I don't know what Emacs aims to do when faced with mixed fonts.
AFAICT it does not try to re-scale glyphs to make them match their
string-width, e.g. here Noto Color Emoji characters take up slightly
more than 2 "columns"; Symbola characters like 👁 are somewhere in
between:

  (dolist (char '("c" "⚠" "👁" "⚠️" "👁️"))
    (let ((font (font-at (1- (length char)) nil char)))
      (insert (format "%s: %d\n" char (string-pixel-width char)))))

  c: 9
  ⚠: 9
  👁: 15
  ⚠️: 19
  👁️: 19

Not saying Emacs should do anything more; just wondering what behaviour
users should expect there)


[-- Attachment #2: Screenshot_20221129_084242.png --]
[-- Type: image/png, Size: 126092 bytes --]

  reply	other threads:[~2022-11-29  7:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-26 11:04 bug#59606: flags take up so many columns Dan Jacobson
2022-11-26 11:14 ` Werner LEMBERG
2022-11-26 11:41 ` Kévin Le Gouguec
2022-11-28  8:18   ` Dan Jacobson
2022-11-29  7:44     ` Kévin Le Gouguec [this message]
2022-11-29 10:41       ` Dan Jacobson
2022-11-29 20:39         ` Kévin Le Gouguec
2022-11-30 12:17           ` Dan Jacobson
2022-11-30 20:51             ` 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

  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=87tu2iciih.fsf@gmail.com \
    --to=kevin.legouguec@gmail.com \
    --cc=59606@debbugs.gnu.org \
    --cc=jidanni@jidanni.org \
    --cc=wl@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 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).