[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Large font line spacing in Qt3 (1st explaination)
From:       Dirk Mueller <mueller () kde ! org>
Date:       2001-10-10 11:11:06
[Download RAW message or body]

On Die, 02 Okt 2001, Michael Goffioul wrote:

> Forget it, it doesn't work. Even if I select mdk-helvetica as standard font,
> it fall back to adobe-helvetica when trying to load a unicode font, so the
> problem remains. No other workaround than hacking qfont_x11.cpp.

Try this. I found that QFontInfo is completely busted in Qt3. At least for 
me all apps look nice and shiny again.


Dirk

["qfontinfo.patch" (text/plain)]

Index: src/kernel/qfont_x11.cpp
===================================================================
RCS file: /home/kde/qt-copy/src/kernel/qfont_x11.cpp,v
retrieving revision 1.49
diff -u -3 -d -p -r1.49 qfont_x11.cpp
--- src/kernel/qfont_x11.cpp	2001/10/01 11:13:51	1.49
+++ src/kernel/qfont_x11.cpp	2001/10/09 17:40:33
@@ -2334,6 +2334,8 @@ void QFontPrivate::load(QFont::Script sc
 	    // while the application is running
 	    qfs->deref();
 	}
+        // make sure to recalculate fontinfo
+        actual.dirty = TRUE;
     }
 
     QChar sample = sampleCharacter(script);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic