GNU bug report logs - #57976
29.0.50; Complex emoji have extra spacing

Previous Next

Package: emacs;

Reported by: Protesilaos Stavrou <info <at> protesilaos.com>

Date: Wed, 21 Sep 2022 10:18:02 UTC

Severity: normal

Merged with 59606

Found in version 29.0.50

Done: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>

Bug is archived. No further changes may be made.

Full log


Message #26 received at 57976 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Protesilaos Stavrou <info <at> protesilaos.com>
Cc: 57976 <at> debbugs.gnu.org
Subject: Re: bug#57976: 29.0.50; Complex emoji have extra spacing
Date: Wed, 21 Sep 2022 16:03:02 +0200
Protesilaos Stavrou <info <at> protesilaos.com> writes:

> I get these:
>
>     (string-pixel-width "πŸ˜Άβ€πŸŒ«οΈ")
>     ;; => 136
>
>     (string-pixel-width "🀣")
>     ;; => 16

Wow.  So Emacs gets the dimensions of πŸ˜Άβ€πŸŒ«οΈ really, really wrong with that
harfbuzz version.  πŸ˜Άβ€πŸŒ«οΈ is composed of

FACE WITHOUT MOUTH
ZERO WIDTH JOINER
FOG
VARIATION SELECTOR-16

so even if it counted all four of those separately, we'd just get to
(* 16 4) = 64, not 136...




This bug report was last modified 2 years and 229 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.