You are not logged in.

1

Tuesday, March 4th 2003, 2:09pm

Font problems with Xfree 4.3.0 & Qt 3.1.1

Hi all,

I am using SuSE 8.1 with KDE 3.1 (and Qt 3.1.1), and just upgraded from XFree 4.2 to 4.3.
Everything seems to be working and im overall very satisfied with the latest XF release. However, there are certain fonts which give strange or even no visuals. For example, when i select certain fonts in kword/kedit/konsole(/...) they are invisible, or viewed as very long thin lines.
Fonts with problems include:

Charter
Clean
Clearlyu
Courier [Adobe]
Courier [Bitstream]
...
Helvetica [Adobe]
....
and much more...

Note that these fonts are all from the XFree 4.3 packages. XFree 4.2 fonts gave the same problems. I removed them and installed XF4.3 fonts again but no differences but less fonts.

I tried to do all the things SuSE said in their readme of this upgrade, but none seem to help. This includes: removal of old cache & doing font-config -f, using SaX2.
I also did some checking on ~/.qt/qtrc, used KDEfontmanager, and almost DoS'ed google on this.
Please note that i get no errors on any font/qt/xfree programs, except for the fact of the misdisplayed fonts in Qt.

I discovered that all GTK programs do display all fonts correct, only Qt programs dont and give the problems discribed above. Therefore i think the problems lies with XF&Qt.
I am using Qt 3.1.1 (SuSE), KDE3.1 (Official), and XFree 4.3.0 (SuSE). Any problems known with the combination of this software? Couldnt find anything on any of the corresponding websites.

My guess is a incompatibily between XFree 4.3's Xft module and Qt, i hope someone can help me or knows someting about this issue.

Thanks in advance,

Scythe

2

Wednesday, March 5th 2003, 3:08pm

Found Solution

Hi all,

I actually found the solution for the font problems with Qt/KDE some ppl may already have experienced, after upgrading to Xfree86 4.3.0.

Like i thought yesterday, it really is something between Qt and XF4.3. More specificly, between Qt and Xft.

The clue is as following:

1: Follow every step from SuSE's (XF4.3) README, and be sure XF4.3 works fine beside the font problem described above.

2: Download xshared-4.2.0-187.i586.rpm from SuSE's ftp (or mirror).

3: Extract libXft.so.1.1 from the RPM (using Midnight Commander or rpm-get) and put the file at a safe place.

4: Backup all /usr/X11/lib/libXft* to a secure place, in case something horrible happens.

5: Copy and overwrite the XF4.3 Xft libs with the one from suse's 4.2 like this (after cd'ing to the dir where the extracted libXft.so.1.1 is):
su -c "cp libXft.so.1.1 /usr/X11/lib/libXft.so.2.1"
su -c "cp libXft.so.1.1 /usr/X11/lib/libXft.so.1.1"

5: When doing this in KDE, KDE will crash. This is no problem. Just restart the XServer, and start KDE, whether it will crash or not.

6: Have fun, and enjoy XFree86 4.3 ( with an old Xft library ;)


Of course this method isnt ideal, but i guess this is the best thing until Qt or KDE has a resolution of it's own.

Greetings,

Scythe.

Gorbag

Unregistered

3

Wednesday, March 5th 2003, 5:42pm

My solution

I solved the same problem by compiling qt 3.1.1 once I had updated X.

Fortunately for me I build my qt and kde frorm sources, so this was simple.

It suggests the real solution is for SuSE to produce a new qt3.1.X rpm for use with X 4.3.0

4

Friday, March 7th 2003, 8:23am

Re: My solution not work

I compile qt 3.1.1 once I had updated X and any QT application not work
with any Fixed font !!!.
qfd from example show blank or crash with core !!!!

I build qt and kde frorm sources.


:!:

Unregistered

5

Friday, March 7th 2003, 11:14am

Try to get/compile libXft from a XFree4.2.x release and do the same described above.
On my system compiling Qt/KDE from source didnt help either. Just follow the above instructions ( but if you arent runnign SuSE8.1, get that libXft.so.x from XF4.2 on a different way then SuSE's rpm's ;)

Greetings,

Scythe.

6

Friday, March 7th 2003, 11:32am

Quoted

Original von Anonymous

Try to get/compile libXft from a XFree4.2.x release and do the same described above.
On my system compiling Qt/KDE from source didnt help either. Just follow the above instructions ( but if you arent runnign SuSE8.1, get that libXft.so.x from XF4.2 on a different way then SuSE's rpm's ;)

Greetings,

Scythe.


This is wrong way to solv thats problem ! :evil:
This is problem Trolltech QT library !

In /etc/X11/XftConfig for XF4.2
#
# Fixes a problem in KDE with konsole
#
match any family == "fixed" edit antialias =+ "false";
match any family == "console" edit antialias =+ "false";

For XF4.3 used fonts.conf ....

If in /etc/X11/XF86Config-4 set
DefaultDepth 8 ( may be Xft disabled )
all Fixed fonts in KDE begin to work !

7

Thursday, March 13th 2003, 4:56pm

:D
Ok Work
after installing XF43
replace freetype2
freetype 2.1.3 -> configure --prefix=/usr/X11R6 && make && make install

Thanks