[Top][All Lists]

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

Re: problem with emoji

From: Timothy Allen
Subject: Re: problem with emoji
Date: Tue, 05 Feb 2019 08:40:53 +1100
User-agent: Evolution 3.30.4-1

On Mon, 2019-02-04 at 17:12 +0100, folkert wrote:
> It looks like printing UTF-8 emoji mangles the terminal when printed
> from an ncurses application.
> Situation is either putty on windows or gnome-terminal on linux,
> problem
> happens on both.

Emoji are supposed to be rendered two character-cells wide. Looking at
your screenshot, I notice that on the first line, two emojis have been
replaced with single-cell boxes, and the alignment of that line is off
by two. On the second line, one emoji has been replaced, and the
alignment is off by one. The third line has four replacements and is
off by four, etc.

Given that ncurses knows nothing of fonts or replacement glyphs, it
sounds like your terminals are predicting what the alignment *should*
be, then asking the operating system to render the text and then
blindly assuming the alignment was correct.

For reference, here's a screenshot of your test-case being rendered
correctly in gnome-terminal 3.30.2:


reply via email to

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