emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Entering emojis


From: Lars Ingebrigtsen
Subject: Re: Entering emojis
Date: Sat, 30 Oct 2021 14:20:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> (string-limit "Hello, πŸ‘¨πŸ½β€β€οΈβ€πŸ’‹β€πŸ‘¨πŸΎ" 8)
>> => "Hello, πŸ‘¨"
>> 
>> and
>> 
>> (truncate-string-to-width "πŸ‘¨πŸ½β€β€οΈβ€πŸ’‹β€πŸ‘¨πŸΎ" 2 nil t)
>> => "πŸ‘¨"
>
> Nothing, they should "just work", barring bugs.

Well...  they don't "just work" now, as the example shows.  But perhaps
you're not seeing the correct glyphs here?  Here's a screenshot.

PNG image


> What does string-width return for this string on your system?

2 for both strings.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

reply via email to

[Prev in Thread] Current Thread [Next in Thread]