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

List:       kde-devel
Subject:    Re: qt-copy now contains 2.3.0
From:       Lars Knoll <lars () trolltech ! com>
Date:       2001-03-07 19:40:38
[Download RAW message or body]

On Wednesday 07 March 2001 20:30, Dan Pilone wrote:
> On Wednesday 07 March 2001 14:13, Dirk Mueller wrote:
> > I updated qt-copy to 2.3.0. Note that if you use XFT there you need
> > latest XFree CVS otherwise it won't work properly. DON'T bug
> > qt-bugs@trolltech about it ;-)
>
> 	Meaning XFree 4.0.2 w/ XFT isn't new enough anymore??  Sigh.. -- Dan

It'll be a bit broken with fixed fonts. There are two ways to solve this. The 
right way is done in Xft. The other is to add a workaround in Qt, that'll at 
let you select fixed fonts. I've attached the patch to both Xft and Qt. If 
you compile XFree from source the Xft patch (or updating XFree) is clearly 
preferable. It's very small in xc/lib/Xft, and you'll only need to recompile 
the Xft subdirectory (make; make install in that directory after applying the 
patch should do).

If you have binary XFree, you might try the Qt hack.

Enjoy,
Lars

["qt-xft-workaround.diff" (text/x-c++)]

==== //depot/qt/2.3/src/kernel/qfont_x11.cpp#11 - /home/lars/troll/qt-2.3/src/kernel/qfont_x11.cpp ====
@@ -1414,7 +1414,11 @@
 			      XFT_WEIGHT, XftTypeInteger, weight_value,
 			      XFT_SLANT, XftTypeInteger, slant_value,
 			      XFT_SIZE, XftTypeDouble, size_value,
+#if 0
+			      // ### don't use this at the moment, as Xft prefers spacing over family. It would
+			      // break monosspaced fonts!
 			      XFT_SPACING, XftTypeInteger, mono_value,
+#endif
 			      0);
 #if 0
 	    if (ft)

["xft.diff" (text/plain)]

Index: xftmatch.c
===================================================================
RCS file: /cvs/xc/lib/Xft/xftmatch.c,v
retrieving revision 1.4
diff -u -r1.4 xftmatch.c
--- xftmatch.c	2001/01/26 20:51:17	1.4
+++ xftmatch.c	2001/03/06 10:32:01
@@ -97,9 +97,9 @@
 static XftMatcher _XftMatchers [] = {
     { XFT_FOUNDRY,	_XftCompareString, },
     { XFT_ENCODING,	_XftCompareString, },
-    { XFT_SPACING,	_XftCompareInteger, },
     { XFT_ANTIALIAS,	_XftCompareBool, },
     { XFT_FAMILY,	_XftCompareString, },
+    { XFT_SPACING,	_XftCompareInteger, },
     { XFT_PIXEL_SIZE,	_XftCompareSize, },
     { XFT_STYLE,	_XftCompareString, },
     { XFT_SLANT,	_XftCompareInteger, },

>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


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

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