Konqueror/KHTML 3.1.x Text Display Problems
Hi, I'm running SuSE 8.1, but have upgraded KDE and XFree with the SuSE RPMs. I now have XFree 4.3.0 and KDE 3.1.4 Since upgrading to KDE 3.1.x Konqueror has had trouble displaying text on certain websites. An example of this is http://www.kdevelop.org. Just before the stylesheet loads, all of the text renders, but as soon as the stylesheet is applied all the text disappears and the HTML page increases massively in width. I can select the invisible text and it seems like the characters are all spaced out, which is what causes the page to become very wide. Opera 7.21 (Shared) QT displays all such pages ok, so I don't think it's a X Windows problem. I think it is something to do with how it substitutes fonts when QT cannot match the font family exactly with a font from the available list. I have tried a few different settings with qtconfig, but nothing seems to work, except turning QT's anti-aliasing off. Then all fonts display in Konqueror, but of course they all look horrible. Has anyone else experienced this? Any clues as to what config I need to change to fix it? TIA -- Colin Pinkney http://www.cpinkney.org.uk
On Fri, 24 Oct 2003 17:16:36 +0100 Colin Pinkney <colin.pinkney@orange.net> wrote:
Has anyone else experienced this? Any clues as to what config I need to change to fix it?
No problem here. Try running fonts-config -f and see if it helps. Also upgrade your freetype2, later versions does a much better job (I am using 2.1.4). Charles -- "Calling EMACS an editor is like calling the Earth a hunk of dirt." -- Chris DiBona on Dirt (Open Sources, 1999 O'Reilly and Associates)
On Friday 24 Oct 2003 19:09, Charles Philip Chan wrote:
No problem here. Try running
fonts-config -f
and see if it helps. Also upgrade your freetype2, later versions does a much better job (I am using 2.1.4).
Thanks for the suggestions. The fonts-conf didn't seem to correct anything and I am currently running freetype2 v2.1.3. I try and stick to SuSE RPMs to avoid things like this and I think v2.1.3 is SuSE's latest version. Konqueror/KHTML on my system seems to have trouble when a page specifies either Lucida or Times as the preferred font in the HTML or CSS. However I can set the default font in Konqueror to either of these and they show fine. They also show fine in other KDE apps like KWord. I don't know if it's related, but in the font list in the Konqueror font settings or in any other KDE app there are a lot of fonts that do not render at all, such as "Adobe Courier", although all the other Courier variants display fine. I can only think the "Adobe Courier" font is from /usr/X11R6/ lib/X11/fonts/100dpi and 75dpi and even when I disable those font directories in both KDE and X Windows, the "Adobe Courier" font is still listed in the KDE font lists, but still doesn't render. Thanks, -- Colin Pinkney http://www.cpinkney.org.uk
On Fri, 24 Oct 2003 21:39:42 +0100 Colin Pinkney <colin.pinkney@orange.net> wrote:
I try and stick to SuSE RPMs to avoid things like this and I think v2.1.3 is SuSE's latest version.
Try these: ftp://ftp.suse.com/pub/people/mfabian/8.2-src/freetype2-2.1.4-0.src.rpm ftp://ftp.suse.com/pub/people/mfabian/8.2-src/fontconfig-2.2.0-14.src.rpm
Konqueror/KHTML on my system seems to have trouble when a page specifies either Lucida or Times as the preferred font in the HTML or CSS.
Things you can try: (1) Change the order of the fontpath is your XF86Config file. I generally put directories with type1 and truetype fonts on top and add the unscaled option to directories with bitmap fonts. (2) Install some more truetype/type1 fonts that corresponds to the messed up fonts (I hate to mention this, but you might consider the ms-core fonts) or, if you are up to it, edit the files in /etc/fonts. The ms-core fonts can be found here: http://corefonts.sourceforge.net/ Charles -- Running Windows on a Pentium is like having a brand new Porsche but only be able to drive backwards with the handbrake on. (Unknown source)
On Friday 24 Oct 2003 22:01, Charles Philip Chan wrote:
Try these:
ftp://ftp.suse.com/pub/people/mfabian/8.2-src/freetype2-2.1.4-0.src.rpm ftp://ftp.suse.com/pub/people/mfabian/8.2-src/fontconfig-2.2.0-14.src.rpm
Didn't make any difference :-(
(1) Change the order of the fontpath is your XF86Config file. I generally put directories with type1 and truetype fonts on top and add the unscaled option to directories with bitmap fonts.
Nor did this.
(2) Install some more truetype/type1 fonts that corresponds to the messed up fonts (I hate to mention this, but you might consider the ms-core fonts) or, if you are up to it, edit the files in /etc/fonts. The ms-core fonts can be found here:
I already have all my Windows fonts (including the ms-core fonts) installed and I looked at /etc/fonts/font.conf and it seemed ok. It used to work at one point, and like I said, Opera seems to work fine and I would have thought both KHTML and Opera would used QT's font rendering/ substiution in the same way. Since KHTML is used is several apps, it's quite annoying that this one thing doesn't work. Thanks for your help. It is much appreciated. Any other things I can look at or try? -- Colin Pinkney http://www.cpinkney.org.uk
On Fri, 24 Oct 2003 23:53:22 +0100 Colin Pinkney <colin.pinkney@orange.net> wrote:
It used to work at one point, and like I said, Opera seems to work fine and I would have thought both KHTML and Opera would used QT's font rendering/ substiution in the same way.
Are they using the same QT version? I am stumped as you are at this point. My configuration is different from yours though since I compiled my KDE 3.1.4 from pristine source before SuSE made their RPM's available. My KDE is also compiled against QT 3.1.2 and not QT 3.2 like SuSE's. Charles -- "I once witnessed a long-winded, month-long flamewar over the use of mice vs. trackballs...It was very silly." (By Matt Welsh)
On Saturday 25 Oct 2003 00:22, Charles Philip Chan wrote:
Colin Pinkney <colin.pinkney@orange.net> wrote:
It used to work at one point, and like I said, Opera seems to work fine and I would have thought both KHTML and Opera would used QT's font rendering/ substiution in the same way.
Are they using the same QT version?
Opera 7.21 is statically linked to QT 3.1.2 (I tried the dynamic version linked to QT 3.0.5, but it was replacing random letters with the wrong characters with certain sizes of truetype fonts?!?!) SuSE's KDE 3.1.4 is using QT 3.2.1 I wouldn't have thought that there was a problem with QT 3.2.1 or SuSE's packages as others would have reported similar problems. I can't find anyone anywhere that has had a similar problem. -- Colin Pinkney http://www.cpinkney.org.uk
On Sat, 25 Oct 2003 00:43:38 +0100 Colin Pinkney <colin.pinkney@orange.net> wrote:
I wouldn't have thought that there was a problem with QT 3.2.1 or SuSE's packages as others would have reported similar problems. I can't find anyone anywhere that has had a similar problem.
Some people were having font problems, but different from yours (such as losing anti-alias fonts, IIRC). Please check the SuSE English list archive for more details. Charles -- The nice thing about Windows is - It does not just crash, it displays a dialog box and lets you press 'OK' first. (Arno Schaefer's .sig)
On Saturday 25 Oct 2003 01:47, Charles Philip Chan wrote:
Some people were having font problems, but different from yours (such as losing anti-alias fonts, IIRC). Please check the SuSE English list archive for more details.
I've kind of tracked the problem down. It was matching fonts from the 100dpi/75dpi font directories for Lucida and Courier and these aren't rendering on my system for some reason. Even when I removed those directories from my XF86Config, QT/KDE still somehow picked them up. But when I moved them out of the X11 font directory completely, KHTML started using the correct fonts. :-) Not sure whether I want to work out why those fonts are not rendering as I do not really need them. I think I have all the appropriate X modules and extensions loaded. Thanks for your time. -- Colin Pinkney http://www.cpinkney.org.uk
Colin Pinkney wrote:
Hi,
I'm running SuSE 8.1, but have upgraded KDE and XFree with the SuSE RPMs.
I now have XFree 4.3.0 and KDE 3.1.4
Since upgrading to KDE 3.1.x Konqueror has had trouble displaying text on certain websites. An example of this is http://www.kdevelop.org. Just before the stylesheet loads, all of the text renders, but as soon as the stylesheet is applied all the text disappears and the HTML page increases massively in width. I can select the invisible text and it seems like the characters are all spaced out, which is what causes the page to become very wide.
Opera 7.21 (Shared) QT displays all such pages ok, so I don't think it's a X Windows problem.
I think it is something to do with how it substitutes fonts when QT cannot match the font family exactly with a font from the available list. I have tried a few different settings with qtconfig, but nothing seems to work, except turning QT's anti-aliasing off. Then all fonts display in Konqueror, but of course they all look horrible.
Has anyone else experienced this? Any clues as to what config I need to change to fix it?
TIA
Hi, have you tried recompiling qt-3.2 (from the SuSE-ftp update directory) on your own machine? I had exactly the described problem after upgrading to KDE 3.1.3 and qt 3.2 (using XFree 4.3). Recompiling qt-3.2 solved the font-mess on my machine. I'm not sure, but there seems to be some conflict between the QT version SuSE provides for 8.1, and the updated XFree (ver. 4.3)... Hope this helps... mischa
participants (3)
-
Charles Philip Chan
-
Colin Pinkney
-
Mischa Zschokke