Bug 215397 - Hebrew Messages are Displayed with Jumpy Margins
Summary: Hebrew Messages are Displayed with Jumpy Margins
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-20 11:26 UTC by Shlomi Fish
Modified: 2015-04-12 09:44 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot of a SampleHebrew Message (50.50 KB, image/png)
2009-11-20 11:34 UTC, Shlomi Fish
Details
Shlomi's message rendered correctly (82.68 KB, image/png)
2011-02-01 23:34 UTC, Shai
Details
The message in the main window with the Bitstream Vera Sans Mono 12 Font (76.45 KB, image/png)
2011-02-02 10:59 UTC, Shlomi Fish
Details
Message after double clicking on it. (50.83 KB, image/png)
2011-02-02 11:01 UTC, Shlomi Fish
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shlomi Fish 2009-11-20 11:26:40 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

In the latest kdepim4-4.3.75-1mdv2010.1.src.rpm using qt4-4.6.0-0.rc1.1mdv2010.1.src.rpm , KMail displays the margins of the Hebrew messages in a very jumpy way. Most of the lines are aligned several spaces to the right, while some lines are to the right of them and the lines in general are uneven - it is very awkward.

I was hoping to get better Hebrew support in KDE-4.4.x, where I can write messages in Hebrew with the proper text alignment, but it seems the situation has only gotten worse.

I'd appreciate you shedding any light on it and fixing it.

Regards,

-- Shlomi Fish
Comment 1 Shlomi Fish 2009-11-20 11:34:08 UTC
Created attachment 38455 [details]
Screenshot of a SampleHebrew Message

This is a screenshot of a sample Hebrew message.
Comment 2 Shlomi Fish 2009-11-29 22:59:44 UTC
This bug seems to have gotten worse recently. Now the right part of every Hebrew line (the beginning) is obscured by the right scrollbar, regardless of how wide the window is.

Regards,

-- Shlomi Fish
Comment 3 Shai 2009-12-30 01:21:57 UTC
I have failed to reproduce the bug on KDE 4.3.85 (4.4 beta 2) compiled from clean KDE sources (revision 1066139). It may have to do with some specific selection of fonts, or a Mandriva patch.

I'm working on Debian, in case it is relevant.
Comment 4 Shlomi Fish 2009-12-30 09:57:38 UTC
(In reply to comment #3)
> I have failed to reproduce the bug on KDE 4.3.85 (4.4 beta 2) compiled from
> clean KDE sources (revision 1066139). It may have to do with some specific
> selection of fonts, or a Mandriva patch.
> 

Thanks! I'll investigate.

> I'm working on Debian, in case it is relevant.
Comment 5 Shlomi Fish 2009-12-30 11:14:09 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > I have failed to reproduce the bug on KDE 4.3.85 (4.4 beta 2) compiled from
> > clean KDE sources (revision 1066139). It may have to do with some specific
> > selection of fonts, or a Mandriva patch.
> > 
> 
> Thanks! I'll investigate.
> 

OK, seems like changing the font has indeed resolved the problem. Now only to find a good font that will work on both Hebrew and Latin. And it may still be a Qt or underlying libraries bug.

Regards,

-- Shlomi Fish

> > I'm working on Debian, in case it is relevant.
Comment 6 Shlomi Fish 2010-07-21 16:31:58 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > (In reply to comment #3)
> > > I have failed to reproduce the bug on KDE 4.3.85 (4.4 beta 2) compiled from
> > > clean KDE sources (revision 1066139). It may have to do with some specific
> > > selection of fonts, or a Mandriva patch.
> > > 
> > 
> > Thanks! I'll investigate.
> > 
> 
> OK, seems like changing the font has indeed resolved the problem. Now only to
> find a good font that will work on both Hebrew and Latin. And it may still be a
> Qt or underlying libraries bug.
> 
> Regards,
> 
> -- Shlomi Fish
> 

Hi!

I'm now using kmail-4.4.3-12mdv2010.1 with kdebase4-workspace-4.4.92-1mdv2010.1 on Mandriva Linux Cooker. Changing the message preview font to Bitstream Vera Sans Mono 12 reproduces this bug, while it's OK while using the Tahoma font (but which isn't monospaced , so it's not as ideal). Can anyone look into this bug?

Regards,

-- Shlomi Fish
Comment 7 Shlomi Fish 2010-08-20 11:01:44 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > (In reply to comment #4)
> > > (In reply to comment #3)
> > > > I have failed to reproduce the bug on KDE 4.3.85 (4.4 beta 2) compiled from
> > > > clean KDE sources (revision 1066139). It may have to do with some specific
> > > > selection of fonts, or a Mandriva patch.
> > > > 
> > > 
> > > Thanks! I'll investigate.
> > > 
> > 
> > OK, seems like changing the font has indeed resolved the problem. Now only to
> > find a good font that will work on both Hebrew and Latin. And it may still be a
> > Qt or underlying libraries bug.
> > 
> > Regards,
> > 
> > -- Shlomi Fish
> > 
> 
> Hi!
> 
> I'm now using kmail-4.4.3-12mdv2010.1 with kdebase4-workspace-4.4.92-1mdv2010.1
> on Mandriva Linux Cooker. Changing the message preview font to Bitstream Vera
> Sans Mono 12 reproduces this bug, while it's OK while using the Tahoma font
> (but which isn't monospaced , so it's not as ideal). Can anyone look into this
> bug?
> 
> Regards,
> 
> -- Shlomi Fish

Ping. Can anyone comment on this bug?
Comment 8 Shai 2011-02-01 23:34:31 UTC
Created attachment 56767 [details]
Shlomi's message rendered correctly 

Hi,

I just checked, and the problem is not reproduced here.

The font selected, as indicated in the picture, is Bitstream Vera Sans Mono 12 -- the very one Shlomi complained about. This is KMail 1.13.5 using KDE 4.4.5 on Debian unstable.
Comment 9 Christophe Marin 2011-02-02 00:35:36 UTC
Thanks for the feedback. Closing.
Comment 10 Shlomi Fish 2011-02-02 10:32:47 UTC
(In reply to comment #9)
> Thanks for the feedback. Closing.

Hold your horses. I'm still getting this problem on Mandriva Linux Cooker on a P4-2.4GHz machine on a completely new UNIX user account, running a KMail 1.13.5 built from source into /opt/kdepim4.4 , with the Bitstream Vera Sans Mono 12 font (does not happen with many other fonts). So the problem still exists here.
Comment 11 Shai 2011-02-02 10:42:34 UTC
Shlomi, can you please post an updated screenshot?

By your comment #2, the one you posted originally no longer shows the current problem, and in fact, that one doesn't even use a monospaced font.
Comment 12 Christophe Marin 2011-02-02 10:43:25 UTC
how about attaching a message to this report then ?
Comment 13 Shlomi Fish 2011-02-02 10:59:36 UTC
Created attachment 56781 [details]
The message in the main window with the Bitstream Vera Sans Mono 12 Font

This is the message in the main window.
Comment 14 Shlomi Fish 2011-02-02 11:01:21 UTC
Created attachment 56782 [details]
Message after double clicking on it.

As one can see, the fonts' right margin is not displayed properly.
Comment 15 Shai 2011-02-02 11:12:27 UTC
Shlomi,

As noted above, the font in these images is not monospaced. Please find what font you are really using.

The control choosing the font in the second image chooses only the font for the message header, not the message body, as far as I've seen. This may be worth its own bug.
Comment 16 Shlomi Fish 2011-02-02 11:33:47 UTC
(In reply to comment #15)
> Shlomi,
> 
> As noted above, the font in these images is not monospaced. 

Yes, you're right.

> Please find what
> font you are really using.

How do I find out that? gfontsampler displays the Hebrew letters in most fonts as this one, so it's hard to know which Hebrew fonts they are using.

> 
> The control choosing the font in the second image chooses only the font for the
> message header, not the message body, as far as I've seen. This may be worth
> its own bug.

Yes, I used the Appearance tabs in the settings menu.
Comment 17 Shai 2011-02-02 12:26:58 UTC
If you use the appearance tab to change the font, then, assuming "use custom fonts" is checked, look at the font selected for "message body".

If it is not checked, you are using fonts selected at the desktop level; under KDE, this is controlled with the System Settings (Appearance -> Fonts).
Comment 18 Shlomi Fish 2011-02-05 13:37:27 UTC
(In reply to comment #17)
> If you use the appearance tab to change the font, then, assuming "use custom
> fonts" is checked, look at the font selected for "message body".
> 

"use custom fonts" is checked there and it says "Bitstream Vera Sans Mono Regular 12" but still displays the Hebrew as non-monospaced. In a new user.

Sorry for the late response.

Regards,

-- Shlomi Fish
Comment 19 Shai 2011-02-06 09:49:25 UTC
Sounds like a problem in your fonts configuration... try to select the same font using something like xfontsel; my guess is that you don't really have that font (in that size), and KDE is doing some funky font replacement.
Comment 20 Laurent Montel 2015-04-12 09:44:46 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.