On 20 Mar 2001, Daouda LO wrote:

> Claudio <[EMAIL PROTECTED]> writes:
> 
> > I wish to add one more problem...
> > 
> > 11. "Use antialiased fonts" is ON by default. I guess many users won't this 
> > untill the whole distribution could not make the KDE **usable** with those 
> > kind of fonts... So PLEASE (!!!) turn off that option in next 
> > recompilation... ;o)
> 
> Will be done in next rebuild .
> 
Great. Are you also including my patch to make it more usable when antialiasing
gets switched on?

Note that it only affects the case of the broken libXft, so it won't do any harm
for the general case (no AA) or when XFree 4.1 comes out.

Anyway, I'm including it again here.
--- kdelibs/kdecore/kcharsets.cpp.qt_xft        Tue Mar 13 18:57:52 2001
+++ kdelibs/kdecore/kcharsets.cpp       Tue Mar 13 19:04:04 2001
@@ -481,6 +481,18 @@
         return;
     }
 
+    // if QT_XFT is used, the font might be ok, even if it is not in the list
+
+    if(f.charSet() == charset) {
+    //kdDebug() << "KCharset::setQfont: font has correct charset" << endl;
+        return;
+    }
+                               
+    if(f.charSet() == QFont::Unicode) {
+    //kdDebug << "KCharset::setQfont: font is Unicode" << endl;
+       return;
+    }
+
     // ok... we don't have the charset in the specified family, let's
     // try to find a replacement.
 
--- kdelibs/kdeui/kfontdialog.cpp.qt_xft        Tue Mar 13 19:06:49 2001
+++ kdelibs/kdeui/kfontdialog.cpp       Tue Mar 13 19:08:51 2001
@@ -423,11 +423,9 @@
     }
 
     // Fallback.. if there are no fixed fonts found, it's probably a
-    // bug in the font server or Qt.  In this case, just use 'fixed'
-    if (lstFixed.count() == 0)
-      lstFixed.append("fixed");
-
-    lstSys = lstFixed;
+    // bug in the font server or Qt.  In this case, show all fonts
+    if (lstFixed.count() != 0)
+       lstSys = lstFixed;
   }
 
   lstSys.sort();

Reply via email to