[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem with emoji
From: |
folkert |
Subject: |
Re: problem with emoji |
Date: |
Wed, 6 Feb 2019 11:39:24 +0100 |
User-agent: |
NeoMutt/20170306 (1.8.0) |
> > 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:
>
> https://imgur.com/a/0RPADnS
How did you accomplish that?
Folkert van Heusden