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

List:       kde-devel
Subject:    Re: AA and font size
From:       Bernhard Rosenkraenzer <bero () redhat ! de>
Date:       2001-02-28 10:40:35
[Download RAW message or body]

On Wed, 28 Feb 2001, Christer Kaivo-oja wrote:

> The only exception I've seen so far (during a couple of
> hours) is konsole, which gets corrupt to unreadability (atleast in the
> "Medium" font mode I've come to like). Anyone know how to fix this problem?

Patch attached.
It's not very clean though. ;)

LLaP
bero

["konsole-noxft-hack.patch" (TEXT/PLAIN)]

--- kdebase/konsole/src/main.C.xft	Wed Feb  7 11:44:18 2001
+++ kdebase/konsole/src/main.C	Wed Feb  7 11:48:03 2001
@@ -69,6 +69,10 @@
 {
   setuid(getuid()); setgid(getgid()); // drop privileges
 
+  /* Since we can't deal with antialiased fonts ATM, turn them off */
+  const char *QT_XFT=getenv("QT_XFT");
+  setenv("QT_XFT", 0, 1);
+
   // deal with shell/command ////////////////////////////
   bool login_shell = false;
   bool welcome = true;
@@ -134,6 +138,12 @@
 
   KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
   QStrList eargs;
+
+  /* Now that Qt is initialized, we can safely turn AA fonts back on */
+  if(QT_XFT)
+	  setenv("QT_XFT", QT_XFT, 1);
+  else
+	  unsetenv("QT_XFT");
 
   const char* shell = getenv("SHELL");
   if (shell == NULL || *shell == '\0') shell = "/bin/sh";

>> 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