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

List:       kde-devel
Subject:    Re: KDE cvs and monospace font
From:       Lars Knoll <lars () trolltech ! com>
Date:       2004-08-09 8:39:55
Message-ID: 200408091039.56443.lars () trolltech ! com
[Download RAW message or body]

Hi Hetz,

looks like a bug in Qt I discovered a few days ago. The attached patch should 
fix the problem (it unfortunately didn't make it in time for 3.3.3).

Cheers,
Lars

On Sunday 08 August 2004 13:50, Hetz Ben Hamo wrote:
> Hi,
>
> I don't know if this happend to anyone, but I see this problem here across
> 3 machines with KDE CVS (compiled with kdecvs-build script) and Fedora Core
> 2.
>
> The problem is simple..
>
> Looking and setting the fonts on KControl/Fonts - in almost any selection,
> I can select the "Monospace" font without any problem..
>
> Trying to select the font to "Fixed Width" - doesn't show me in the font
> selection the Monospace font at all..
>
> Same thing with Konsole - no "monospace" font available (I'm only talking
> about this specific font name, there are other fixed fonts to select, but
> IMHO the Monospace is the most readable one, specially when you read 14
> hours from Konsole ;) )
>
> Any suggestions please?


["qfontdatabase_x11.diff" (text/x-diff)]

==== //depot/qt/3/src/kernel/qfontdatabase_x11.cpp#49 - \
                /home/lars/dev/qt-3/src/kernel/qfontdatabase_x11.cpp ====
--- /tmp/tmp.7431.0	2004-08-09 10:35:45.000000000 +0200
+++ /home/lars/dev/qt-3/src/kernel/qfontdatabase_x11.cpp	2004-08-09 \
10:35:43.000000000 +0200 @@ -1002,8 +1003,7 @@
 	    style->smoothScalable = TRUE;
 	    QtFontSize *size = style->pixelSize( SMOOTH_SCALABLE, TRUE );
 	    QtFontEncoding *enc = size->encodingID( -1, 0, 0, 0, 0, TRUE );
-	    enc->pitch = ( spacing_value >= XFT_CHARCELL ? 'c' :
-			   ( spacing_value >= XFT_MONO ? 'm' : 'p' ) );
+	    enc->pitch = (f->fixed ? 'm' : 'p');
 	}
 	++f;
     }



>> Visit http://mail.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