You are not logged in.

#1 2008-05-30 20:43:47

bughunter2
Member
From: The Netherlands
Registered: 2008-03-03
Posts: 9

fonts in KDE always look worse than in GTK for me

Hello, here's a screen shot, compare the fonts of the GTK window with the fonts in the KDE window and judge for yourself:

http://xs127.xs.to/xs127/08225/fonts733.png

I have no specific KDE font configuration enabled, have no ~/fonts.conf either... Why don't fonts look the same in GTK and KDE?

Please post hints/opinions...

Last edited by bughunter2 (2008-05-30 20:44:11)

Offline

#2 2008-05-30 22:06:29

kadath
Member
Registered: 2008-05-28
Posts: 6

Re: fonts in KDE always look worse than in GTK for me

To me, the KDE screenshot's fonts look nicer. The hinting isn't so jagged as in the GTK shot.

Offline

#3 2008-05-30 22:48:14

miggols99
Member
Registered: 2007-06-10
Posts: 424

Re: fonts in KDE always look worse than in GTK for me

The Gtk fonts look pretty jagged, and the KDE fonts look like a horrible attempt at subpixel hinting (or anti-aliasing)...go into kcontrol and turn off anti-aliasing in the fonts area if you think the Gtk fonts look nice...

Using a CRT perhaps?

Last edited by miggols99 (2008-05-30 22:48:39)

Offline

#4 2008-06-02 08:19:17

bughunter2
Member
From: The Netherlands
Registered: 2008-03-03
Posts: 9

Re: fonts in KDE always look worse than in GTK for me

I'm using a Samsung SyncMaster 940BF (TFT). To me the fonts in GTK look nicer (still not perfect) than the way KDE renders them (=more blurry).
Without anti-aliasing I predict the fonts will look even worse.

I tried the fontconfig files from www.sharpfonts.com once and had to tweak them here and there, looked OK but still way worse than on Windows (for some fonts). Couldn't get Tahoma right, which I wanted to try since I use it in XP too.

Offline

#5 2008-06-02 08:45:09

edward.al
Member
Registered: 2008-05-26
Posts: 12

Re: fonts in KDE always look worse than in GTK for me

enable subpixel hinting for fonts is better with LCD...
or you may want to install the patched packages,
http://wiki.archlinux.org/index.php/Fon … er_enabled

Offline

#6 2008-06-02 09:33:31

bughunter2
Member
From: The Netherlands
Registered: 2008-03-03
Posts: 9

Re: fonts in KDE always look worse than in GTK for me

edward.al wrote:

enable subpixel hinting for fonts is better with LCD...
or you may want to install the patched packages,
http://wiki.archlinux.org/index.php/Fon … er_enabled

I'll try that. But even if that works I have one question; why do fonts in GTK/KDE not look the same?

EDIT: Tried it, but can't recognize any differences.

Last edited by bughunter2 (2008-06-02 10:11:09)

Offline

#7 2008-06-02 14:33:21

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,686

Re: fonts in KDE always look worse than in GTK for me

I use full subpixel hinting in both environments and fonts have always looked a bit sharper for me under Gnome than they do in KDE, although I do generally run KDE as my default environment.  Not sure why that is, but I've found it to be that way for about 8 years, now.

Edit:  Oh, I should add that they look darn good in either environment on my machine.

Last edited by ozar (2008-06-02 14:34:32)


oz

Offline

#8 2008-06-02 14:52:56

GogglesGuy
Member
From: Rocket City
Registered: 2005-03-29
Posts: 610
Website

Re: fonts in KDE always look worse than in GTK for me

bughunter2 wrote:
edward.al wrote:

enable subpixel hinting for fonts is better with LCD...
or you may want to install the patched packages,
http://wiki.archlinux.org/index.php/Fon … er_enabled

I'll try that. But even if that works I have one question; why do fonts in GTK/KDE not look the same?

EDIT: Tried it, but can't recognize any differences.

They don't use the same configuration...

Offline

#9 2008-06-02 15:17:48

Rokixz
Member
From: Šiauliai, Lithuania
Registered: 2007-04-21
Posts: 251
Website

Re: fonts in KDE always look worse than in GTK for me

http://smail.lt/users/klyvis/fonts.conf
Try to save this in your home directory as .fonts.conf


http://ispconfig.lt - ISPConfig 3 based hosting. Coming Soon!

Offline

#10 2008-06-02 16:32:00

bughunter2
Member
From: The Netherlands
Registered: 2008-03-03
Posts: 9

Re: fonts in KDE always look worse than in GTK for me

GogglesGuy wrote:
bughunter2 wrote:
edward.al wrote:

enable subpixel hinting for fonts is better with LCD...
or you may want to install the patched packages,
http://wiki.archlinux.org/index.php/Fon … er_enabled

I'll try that. But even if that works I have one question; why do fonts in GTK/KDE not look the same?

EDIT: Tried it, but can't recognize any differences.

They don't use the same configuration...

I thought GTK/KDE should obey whatever configurations are in /etc/fonts and ~/.fonts.conf? Or how exactly do these toolkits load font configurations?

Rokixz wrote:

http://smail.lt/users/klyvis/fonts.conf
Try to save this in your home directory as .fonts.conf

Thanks wink Will give it a try.

Last edited by bughunter2 (2008-06-02 16:32:43)

Offline

#11 2008-06-02 17:22:03

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,686

Re: fonts in KDE always look worse than in GTK for me

Rokixz wrote:

http://smail.lt/users/klyvis/fonts.conf
Try to save this in your home directory as .fonts.conf

That's exactly what I have in fonts.conf but KDE fonts still never look quite as sharp as they do in Gnome, and they never have.  I've just accepted it as is, and continue to use KDE anyway.


oz

Offline

#12 2008-06-07 14:23:04

zmeyski
Member
From: Burgas, Bulgaria
Registered: 2004-09-15
Posts: 9

Re: fonts in KDE always look worse than in GTK for me

Hi,

could you post the contents of your ~/.kde/share/config/kdeglobals and kcmfonts. I have the kind of fonts in KDE that you want to achieve and i think i know why. Just need to compare something.

br

Offline

#13 2008-06-10 22:16:22

eldarion
Member
From: Santarém - Portugal
Registered: 2006-08-01
Posts: 71

Re: fonts in KDE always look worse than in GTK for me

Try using this in your /etc/fonts/local.conf

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">

<!-- the cathectic LCD tweaks, from linuxquestions.org,
 http://www.linuxquestions.org/questions/showthread.php?postid=1361098#post1361098 -->

<fontconfig>

<!-- Disable sub-pixel rendering.
 X detects it anyway, and if you set this as well, it just looks really horrible  -->
<match target="font" >
    <edit mode="assign" name="rgba" >
     <const>none</const>
    </edit>
 </match>
 <match target="font" >
    <edit mode="assign" name="hinting">
     <bool>true</bool>
    </edit>
 </match>
 <match target="font" >
    <edit mode="assign" name="hintstyle">
     <const>hintfull</const>
    </edit>
 </match>

<!-- The first part of the 'magic.'
 This makes the fonts start to look nice,
 but some of the shapes will be distorted, so hinting is needed still -->
 <match target="font" >
    <edit mode="assign" name="antialias">
     <bool>true</bool>
    </edit>
 </match>

<!-- Autohinter is not turned on automatically.
 Only disable this if you have recompiled Freetype with the bytecode interpreter,
 which is run automatically.<br />  -->
 <match target="pattern" >
    <edit mode="assign" name="autohint">
     <bool>true</bool>
    </edit>
 </match>
 <match target="font">
         <test name="weight" compare="more">
                 <const>medium</const>
         </test>
         <edit name="autohint" mode="assign">
                 <bool>false</bool>
         </edit>
 </match>
<!-- Helvetica is a non true type font, and will look bad.
 This replaces it with whatever is the default sans-serif font -->
 <match target="pattern" name="family" >
    <test name="family" qual="any" >
     <string>Helvetica</string>
    </test>
    <edit mode="assign" name="family" >
     <string>sans-serif</string>
    </edit>
 </match>



 <dir>~/.fonts</dir>
</fontconfig>

Offline

Board footer

Powered by FluxBB