This forum has been archived. All content is frozen. Please use KDE Discuss instead.

konqueror khtml overlaps monospace font characters

Tags: None
(comma "," separated)
karthikp
Registered Member
Posts
109
Karma
0
OS
What I'm describing is this behavior:

Image

I think it only happens (or I only notice it) when using monospaced fonts, such as for code snippets, etc. This happens in konqueror when using the khtml renderer. Switching to webkit renders the characters correctly.

I have an up-to-date arch system. I've been seeing this happen on and off for a month or more now. It's quite possible it started in 4.7, but I might be wrong about that.

So, do any other users of konqueror see this issue or is it my system that's borked?


karthikp, proud to be a member of KDE forums since 2008.
Image
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Can you please provide a link to a webpage where this can be reproduced?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
karthikp
Registered Member
Posts
109
Karma
0
OS
Sure. My screenshot is taken from this thread on reddit. Scroll down to the comment from a user called "Edootjuh" to see the monospace code snippet.

I realized it may be important to note the konqueror settings I've been using, especially the appearance/font settings. I never changed them, so they're defaulted to DejaVu fonts. The fixed fonts are DejaVu Sans Mono.


karthikp, proud to be a member of KDE forums since 2008.
Image
karthikp
Registered Member
Posts
109
Karma
0
OS
Just wanted to add that pastebins are another place to quickly find this behavior. I went to paste.kde.org and found this random snippet. Does anyone else see the problem I'm describing on their setup?

I also see letter spacing issues in normal text, for instance, in the preview of this post itself, I see that the space before the link text is noticeably bigger than the space after the link text.Here's the relevant screenshot.


karthikp, proud to be a member of KDE forums since 2008.
Image
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I got http://i.imgur.com/Fecrb.png for the KDE Pastebin entry you linked to - not sure if that is a Monospace font however.

I also could not reproduce on Reddit.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
karthikp
Registered Member
Posts
109
Karma
0
OS
Thanks. In that case, I guess it's my settings that are messed up. I don't want to wipe konqueror's settings, so I guess I'll finally move to webkit. :|


karthikp, proud to be a member of KDE forums since 2008.
Image
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Oh, I just noticed that for some reason Konqueror defaults to Webkit here, so I get http://i.imgur.com/G8ETt.png with KHTML. Still does not seem to be corrupted here though....

This could be caused by the Qt 4.8 my system is using.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
karthikp
Registered Member
Posts
109
Karma
0
OS
I'm on arch, so I have qt 4.8 as well.

I should have tested this properly earlier, but my netbook (which also defaults to webkit) running an identical setup doesn't show this corruption issue in khtml. I get a rendering similar to your screenshot.

So, whatever it is, it's confined to my desktop. I'll mark this thread as resolved. Thanks for your help in sorting this out.


karthikp, proud to be a member of KDE forums since 2008.
Image
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
I have this issue as well with Qt 4.8. It's likely on the same league as the regression Qt caused with other programs (such as konsole's fonts).


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar
multimedia
Registered Member
Posts
38
Karma
0
OS
I have this problem aswell since I started using Qt-4.8 a few months ago.
This problem only occurs with the KHTML-engine and only with certain fonts.
Graphicssystem (raster or native) and locale settings (LC_*) have no influence.

Many pages on H-Online suffer from this behaviour, for example:
Link

It looks like the length of the whitespace character between normal text and url-text is zero or negative, making the text overlap.
It looks a bit like this:
good: normal url
bad1: normalurl (space disappeared)
bad2: normaurl (text overlapped)

Konqueror with Webkit, Rekonq and Firefox are working as expected.
User avatar
multimedia
Registered Member
Posts
38
Karma
0
OS
I've just found out, it also depends on the fontsize.
By enlarging or shrinking (CTRL and +/-) the font in Konqueror, I could make the overlapping go away.

And also, Akregator has the same issue.
Is it possible to make Akregator use Webkit instead of KHTML?
GTalbot
Registered Member
Posts
69
Karma
1
OS
karthikp,

I visited
http://www.reddit.com/r/linux/comments/pkrhk/a_case_against_wayland/c3q69cd
and did not see any character overlapping.

From looking at your image

Image

it seems obvious to me that you have set a sans-serif font at the monospace font setting instead of/in place of a true monospace font.

One importantissimo question is:
What is your default monospace font as set in Konqueror?
Do:
Settings/Configure Konqueror.../Internet Navigation/Appearance category/Fonts tab/Fixed Font

If you set "DejaVu Sans Mono" font (which is what I use for Fixed Font) into the Fixed Font setting, do you still see overlapping characters?

I am using Konqueror 4.8.0, Qt 4.7.4, KHTML rendering engine under Kubuntu 11.10.

I will check the stylesheets more carefully because I know there is a bug in Konqueror wrt generic font. It is Bug #264909 but I have not seen it affect monospace; this needs to be furthermore investigated.

Gérard


User avatar
multimedia
Registered Member
Posts
38
Karma
0
OS
I have a similar issue. Not with a browser (I use Webkit with Rekonq), but with Akregator. I think Akregator still uses KHTML-rendering.

This issue appeared after an upgrade from Qt-4.7.4 to 4.8.

I have had this issue before, maybe more than 1 year ago. That time the issue somehow disappeared after a few months, maybe after a KDE or Qt upgrade.

Like I've said in my previous postings, the visibility of this issue depends on the website, font and even the fontsize. Changing the fontsize in Konqueror (using KHTML-engine) with the CTRL + -/+ keys can make the issue (dis)appear.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I can confirm Akregator uses KHTML. If installed, Konqueror will prefer the Webkit backend, but I do not know if Akregator follows this preference however.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
multimedia
Registered Member
Posts
38
Karma
0
OS
There's a bugreport about this (with screenshots :-)):
https://bugs.kde.org/show_bug.cgi?id=290274


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]