I have two unicode characters in my prompt. Both are narrow enough to
fit in a single cell. When the profile compatibility setting is
"Ambiguous width: narrow", one of the characters displays in a single
cell; the other takes a double-cell. When I change the profile setting
to "Ambiguous width: wide", they both show up as double-cell widths.
Previously (Ubuntu 15.10) these characters both displayed correctly
(single-cell).
Having *any* characters show as double-cell width confuses readline
horribly because it shows my edit-cursor in the wrong location and I can
not tell which part of the line I am really editing. It's maddening.
Details:
Here's my prompt:
phord@phord-x1•phord/git/purity(master⚡)»
In gnome-terminal the '•' character shows in a single cell. The '⚡'
character takes two cells.
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-terminal in Ubuntu.
https://bugs.launchpad.net/bugs/1570533
Title:
wrong character width with Ubuntu Mono and replacement fonts in gnome-
terminal:
Status in gnome-terminal package in Ubuntu:
New
Bug description:
I'm using Ubuntu Mono in gnome-terminal. When displaying some unicode
(non ascii) characters that are not in Ubuntu Mono and a fallback font
is used, the spacing between the glyphs is wrong (too small). The
fallback characters are double width, but the next character is
display after a single width, leading into overlapping characters.
If I see this correctly, gnome-terminal is using libvte which is using
pango to render text. I therefore checked how pango renders this with
`pango-view --font="Ubuntu Mono 32" --markup --text='<span
fallback="true">xxxxxxxxxxxxxxxxxxxxxxxxx
A▷C✚D⚑F↓G↑H..I☺J</span>'`
and `pango-view --font="Ubuntu Mono 32" --markup --text='<span
fallback="true">xxxxxxxxxxxxxxxxxxxxxxxxx
A▷C✚D⚑F↓G↑H..I☺J</span>'`
. In both cases double with characters or "replacement boxes" are
displayed and no overlapping occurs.
If I use the "monospace" font, no overlapping occurs in gnome-
terminal.
Whose fault is this and how can it be fixed?
I'm on Ubuntu 14.04.4 LTS, gnome-terminal's version is 3.6.2-0ubuntu1,
tf-ubuntu-font-family 0.80-0ubuntu6 and everything is up to date.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1570533/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp