After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 796437 - Mail list doesn't display correctly when there is Chinese or Japanese
Mail list doesn't display correctly when there is Chinese or Japanese
Status: RESOLVED OBSOLETE
Product: evolution
Classification: Applications
Component: general
3.28.x
Other Linux
: Normal normal
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2018-05-28 14:54 UTC by ven.tang
Modified: 2021-05-19 12:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
mail list view (182.20 KB, image/png)
2018-05-28 14:54 UTC, ven.tang
Details
test message (works fine) (926 bytes, text/plain)
2018-05-29 12:09 UTC, Milan Crha
Details
Screenshot (95.93 KB, image/png)
2018-05-29 12:27 UTC, André Klapper
Details
Testcase for comment 4 (6.60 KB, text/plain)
2018-05-29 12:28 UTC, André Klapper
Details
Chinese hide (11.29 KB, image/png)
2018-05-30 04:53 UTC, ven.tang
Details
Chinese show (12.05 KB, image/png)
2018-05-30 04:54 UTC, ven.tang
Details

Description ven.tang 2018-05-28 14:54:50 UTC
Created attachment 372444 [details]
mail list view

I use English as my default system language. The texts are not be well displayed if there is Chinese or Japanese.It looks like the bottom of the text is cropped by a line.
Comment 1 André Klapper 2018-05-29 08:10:48 UTC
Please provide Evolution version and font information and distribution name and distribution version.

Cannot reproduce the problem with the font that Fedora 28 uses.
Comment 2 ven.tang 2018-05-29 08:38:14 UTC
Hello, I use Ubuntu 18.04, gnome version 3.28.1 with evolution 3.28.1. The font is default, name Ubuntu.
Comment 3 Milan Crha 2018-05-29 12:09:36 UTC
Created attachment 372463 [details]
test message (works fine)

Thanks for a bug report. It looks like the font with those Chinese letters is somehow taller than the one with English letters, which makes the precalculated uniform row height "misbehave" in the message list.

I also cannot reproduce this in Fedora 28 using the attached message.

Could you get the Subject header from the message source (Ctrl+U) of one of the affected messages and replace with it the Subject header in the attached message and share it for testing, please?
Comment 4 André Klapper 2018-05-29 12:27:50 UTC
Created attachment 372464 [details]
Screenshot

Maybe not exactly the same issue, but some Unicode "boxes" are also cut by default in Fedora 28, but only in the message list.
Comment 5 André Klapper 2018-05-29 12:28:31 UTC
Created attachment 372465 [details]
Testcase for comment 4
Comment 6 Milan Crha 2018-05-29 12:33:51 UTC
(In reply to André Klapper from comment #4)
> Maybe not exactly the same issue, but some Unicode "boxes" are also cut by
> default in Fedora 28, but only in the message list.

Hrm, I have all those letters in my font (whichever it picks), no boxes shown here.
Comment 7 ven.tang 2018-05-30 04:52:35 UTC
(In reply to Milan Crha from comment #3)
> Created attachment 372463 [details]
> test message (works fine)
> 
> Thanks for a bug report. It looks like the font with those Chinese letters
> is somehow taller than the one with English letters, which makes the
> precalculated uniform row height "misbehave" in the message list.
> 
> I also cannot reproduce this in Fedora 28 using the attached message.
> 
> Could you get the Subject header from the message source (Ctrl+U) of one of
> the affected messages and replace with it the Subject header in the attached
> message and share it for testing, please?

Hi, the same error even with your testing message here. And from my side, the height is OK, both English letters and Chinese. Here I can reproduce this bug with your testing message, In the mail list view, if I narrow the column, make the Chinese hidden(see attachment 'Chinese hide'),it looks OK, the text is in the center position. But if make the column wider and Chinese word shown(see attachment 'Chinese show'), I can see a animation that all text going down and become bottom position, please note the bottom of letter 'j' was cropped from word Subject or emoji. Very weird.
Comment 8 ven.tang 2018-05-30 04:53:38 UTC
Created attachment 372473 [details]
Chinese hide
Comment 9 ven.tang 2018-05-30 04:54:25 UTC
Created attachment 372474 [details]
Chinese show
Comment 10 Milan Crha 2018-05-30 08:19:57 UTC
Aha, I see, the text moves slightly lower when the Chinese characters are shown. It doesn't cut the bottom of the text here though.

Do you have anything like this:

   ETable,* {
	-ETable-vertical-spacing: 1px;
   }

in ~/.config/gtk-3.0/gtk.css, please? Though even if I comment that line out it doesn't change the behaviour here, the bottom of the text is not cut when the Chinese letters are visible.

This might have something to do with the theme. Could you try to change the font to something else, like Cantarell? Mine GNOME Shell uses (as shown in
gnome-tweaks):

   Window Title: Cantarell Bold 11
   Interface:    Cantarell Regular 11
   Document:     Sans Regular 11
   Monospace:    Monospace Regular 11


With these ^^^ settings the line even doesn't move when the Chinese letters are shown (with Sans 10 on all non-monospace fonts it moves a bit, in MATE, not in GNOME).
Comment 11 ven.tang 2018-05-30 08:53:53 UTC
There is no "~/.config/gtk-3.0/gtk.css" in Ubuntu 18.04, but I found "/usr/share/themes/Ambiance/gtk-3.0/gtk.css",which only have one line "@import url("gtk-main.css");" and I open the gtk-main.css, I still can not find anything like yours.I also tried many other themes,like adwaita,adapta...None of them make sense. Changing fonts doesn't help too, I don't have Cantarell, so only tried other fonts.
Comment 12 Milan Crha 2018-05-30 11:31:00 UTC
You can use that ~/.config/... file to override system settings. The portion I added is usually not set in global/theme settings, but only in the user configuration.

What is the font size you use, please? Do you have any generally available fonts, like "Sans"? I surely do not have "Ubuntu" font on Fedora.
Comment 13 ven.tang 2018-05-30 13:07:51 UTC
Changed fonts to below setting:
Window Title: Sans Bold
Interface: Sans Regular
Document: Sans Regular
Monospace: Monospace Regular

All sizes were set to 11.

I noticed that only when I switch Interface Font from Ubuntu Regular to Sans Regular makes sense. Yes, by setting interface font sans regular works a bit.The Chinese text is fully displayed now, but still all texts were bottom position and letters like "j g y p" still were cropped.

And by "override the system settings", do you suggest me create a file "~/.config/gtk-3.0/gtk.css" whose content is :

ETable,* {
	-ETable-vertical-spacing: 1px;
   }

I did, nothing happens. Sorry if I misunderstand you due to I'm not good at technics.
Comment 14 André Klapper 2018-09-07 18:59:11 UTC
Also reported to https://bugs.launchpad.net/ubuntu/+source/evolution/+bug/1788553
Comment 15 André Klapper 2021-05-19 12:28:40 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. 
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org (resources are unfortunately quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/Community/GettingInTouch/BugReportingGuidelines
and create a new bug report ticket at
  https://gitlab.gnome.org/GNOME/evolution/-/issues/

Thank you for your understanding and your help.