You are not logged in.

#1 2010-03-04 00:08:27

brenix
Member
From: California
Registered: 2008-03-05
Posts: 185

[solved]Fontconfig problems (Ugly GTK Apps)

So I just installed the LCD filter patched packages on my new comp, but I'm trying to determine why some of my GTK apps still look really bad..

Firefox looks great, but pretty much any other app looks like crap, the fonts are barely readable. Below is my font configuration..

My .fonts.conf

<?xml version="1.0"?>
<fontconfig>
    <match target="font" >
    <edit mode="assign" name="rgba"><const>rgb</const></edit>
    <edit mode="assign" name="hinting"><bool>true</bool></edit>
    <edit mode="assign" name="hintstyle"><const>hintslight</const></edit>
    <edit mode="assign" name="antialias"><bool>true</bool></edit>
    <edit mode="assign" name="lcdfilter"><const>lcddefault</const></edit>
    </match>
</fontconfig>

/etc/fonts/conf.d directory:

# ls -l /etc/fonts/conf.d
lrwxrwxrwx 1 root root 30 Mar  3 16:01 10-autohint.conf -> ../conf.avail/10-autohint.conf
lrwxrwxrwx 1 root root 32 Mar  3 16:01 10-lcd-filter.conf -> ../conf.avail/10-lcd-filter.conf
lrwxrwxrwx 1 root root 35 Mar  3 16:01 10-sub-pixel-rgb.conf -> ../conf.avail/10-sub-pixel-rgb.conf
lrwxrwxrwx 1 root root 42 Mar  3 16:01 29-replace-bitmap-fonts.conf -> ../conf.avail/29-replace-bitmap-fonts.conf
lrwxrwxrwx 1 root root 27 Mar  3 16:01 45-latin.conf -> ../conf.avail/45-latin.conf
lrwxrwxrwx 1 root root 31 Mar  3 16:01 49-sansserif.conf -> ../conf.avail/49-sansserif.conf
lrwxrwxrwx 1 root root 26 Mar  3 16:02 50-user.conf -> ../conf.avail/50-user.conf
lrwxrwxrwx 1 root root 27 Mar  3 16:02 60-latin.conf -> ../conf.avail/60-latin.conf

I feel like I'm missing one, but I've attempted to link all the configurations from conf.avail and it still doesn't look good. Anyone?

Edit: Heres a screenshot: shitx.th.jpg

Last edited by brenix (2010-03-04 04:39:30)

Offline

#2 2010-03-04 02:10:19

demizer
Member
From: Gilroy, CA
Registered: 2010-03-03
Posts: 116
Website

Re: [solved]Fontconfig problems (Ugly GTK Apps)

Hey there.

When I first installed arch, x11, xmonad, and gtk, the fonts looked like crap on my screen too. I ran over a ~/.Xdefaults setup that included:

! Xft settings ---------------------------------------------------------------
Xft.dpi:        96
Xft.antialias:  true
Xft.rgba:       rgb
Xft.hinting:    true
Xft.hintstyle:  hintslight

After restarting X, the ugly fonts were gone. I also switched the fonts used in gtk (using lxappearance) to the microsoft cleartype fonts (yeah yeah freedom hater). Don't forget you have to source ~/.Xdefaults from ~/.xinitrc like so:

# make sure the X Defaults gets loaded  
xrdb ~/.Xdefaults

Also note, lxappearance is a great app for changing gtk+ themes.

Offline

#3 2010-03-04 04:39:17

brenix
Member
From: California
Registered: 2008-03-05
Posts: 185

Re: [solved]Fontconfig problems (Ugly GTK Apps)

demizer wrote:

Hey there.

When I first installed arch, x11, xmonad, and gtk, the fonts looked like crap on my screen too. I ran over a ~/.Xdefaults setup that included:
....

Thanks demizer, that fixed the issue. Somehow the Xft.antialias was set to false in my .Xdefaults. Setting it back to true resolved the issue

Offline

Board footer

Powered by FluxBB