You are not logged in.
Hi,
I've been trying to ditch gnome-settings-daemon in my i3 setup. I have the following configuration files:
~/.Xresources
Xft.antialias: 1
Xft.dpi: 96
Xft.hinting: 1
Xft.hintstyle: hintmedium
Xft.rgba: rgb~/.config/fontconfig/fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit name="hintstyle" mode="assign">
<bool>hintslight</bool>
</edit>
</match>
<match target="font">
<edit name="rgba" mode="assign">
<bool>rgb</bool>
</edit>
</match>
<match target="font">
<edit name="lcdfilter" mode="assign">
<bool>lcddefault</bool>
</edit>
</match>
</fontconfig>I'm running xrdb -merge ~/.Xresources prior to starting any applications.
I cannot get my font settings to have any effect. However, starting gnome-settings-daemon at any time (with the xresources plugin enabled) smooths out my fonts (Thunderbird, Firefox, etc). If I then stop g-s-d, fonts go back to the default, non-optimal settings. Any ideas? Thanks!
[SOLVED]
It turns out the the big visual difference was that gnome-settings-daemon was setting "Cantarell 11" as the default font. My Xresources and gtk settings were indeed behaving just fine.
This is all part of a quest to stop using gnome-settings-daemon. The only thing that is difficult to reproduce is g-s-d's event-driven xrandr handling. Looks like xfsettingsd can do the same thing...
Last edited by dgbaley27 (2013-05-04 15:25:28)
Offline
Have you patched cairo with cairo-respect-fontconfig.patch?
If not, try that.
If that doesn't work, you'll have to be less vague about what the problem is. If you're considering apps that use fontconfig, then forget xrdb - they won't use xrdb data.
Offline
Well, my initial goal was simply to replace the functionality of gnome-settings-daemon. As far as I can tell, it only sets the xresources. My .Xresources file is the output from debug statements from g-s-d, so I think the antialiasing and such not being enabled isn't because of the content of .Xresources, but something to do with how I'm setting it compared to g-s-d.
Offline
I use xfce, and don't have gnome-settings-daemon installed.
~/.Xresources and its ilk are dinosaurs - apps should be using fontconfig instead. Sadly, e.g. qt4 and urxvt do not.
Offline
It makes sense that fontconfig is preferred over xrdb, but in simply trying to replace gnome-settings-daemon which only uses xrdb afaict, I think that I should be able to get xrdb Xft.* settings working.
Offline