You are not logged in.
Hi,
I have installed Arch Linux with xfce and awesome wm. I using tahoma as my gtk font. In xfce with Full Hinting and no anti aliasing, it looks very sharp and beautiful. I am trying to set up awesome wm, but could not get it to display fonts just like in xfce.
I have set the dpi of X to 96 in xorg.conf
my .gtkrc-2.0
gtk-theme-name = "Xfce"
style "user-font"
{
font_name="Tahoma 11"
}
widget_class "*" style "user-font"
This is my .fonts.config
<?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>
<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>
</fontconfig>
I did a lot of searching and could not find any solution.
I have attached both my xfce and awesome wm screenshots for comparison.
any help is appreciated.
Last edited by greylogic (2009-08-15 21:57:22)
Offline
Welcome to the forum, greylogic!
I could find only this font settings in this short time in google.
http://awesome.naquadah.org/wiki/Customizing_Fonts
Last edited by djszapi (2009-08-15 20:49:25)
Offline
HI djszapi,
Thanks for the very quick reply. my problem is a little different. i have already chosen the fonts i want to use(Tahoma). For some reason, the same font is getting displayed differently under xfce and awesome. My guess is i am missing some config settings in the .fonts.conf. could not figure out which one it is.
Thanks
Offline
Xfce/Gnome etc use a daemon process to tell apps what settings to use. Standalone WMs don't have this and, annoyingly, most programs seem to ignore fonts.conf.
1) Try adding the appropriate antialias = false section to your fonts.conf, just in case.
2) Create (or add to) ~/.Xdefaults. You can use this file to set the Xft settings for your apps:
Xft.hinting: 1
Xft.hintstyle: hintfull
Xft.antialias: 0
Xft.dpi: 96
Offline
Why not just run the xfce setting deamon (xfsettingsd)? This will give you the same fonts setting and gtk theme as in xfce, you can then also change the theme with xfces setting manager (xfce4-settings-manager)
Offline
That's really quick. wow this community is really awesome.
Adding the .Xdefaults fixed almost all the applications except firefox.
Running xfsettingsd fixed firefox fonts too.
Thanks guys.
Offline