|
From: | Lars Ingebrigtsen |
Subject: | Re: scratch/emoji vs emacs that maybe canʼt display emojis |
Date: | Sun, 07 Nov 2021 17:12:07 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Lars Ingebrigtsen <larsi@gnus.org> writes: > 1) The string widths seem to be off (1 instead of 2), as Robert said > earlier. So: Not for all of them. Normal single-char glyphs are correct: (string-width "😀") => 2 But grapheme clusters are wrong: (string-width "☺️") => 1 Presumably because it doesn't know that it's a cluster? Because it computes the width of just the first code point without the variation selector: (string-width "☺") => 1 -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
[Prev in Thread] | Current Thread | [Next in Thread] |