You are not logged in.

#1 2009-08-15 20:36:41

greylogic
Member
Registered: 2009-08-15
Posts: 14

Fonts in Awesome wm [SOLVED]

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.
xfce4screenshot.th.png
awesomewmscreenshot.th.png
any help is appreciated.

Last edited by greylogic (2009-08-15 21:57:22)

Offline

#2 2009-08-15 20:48:49

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: Fonts in Awesome wm [SOLVED]

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

#3 2009-08-15 20:59:45

greylogic
Member
Registered: 2009-08-15
Posts: 14

Re: Fonts in Awesome wm [SOLVED]

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

#4 2009-08-15 21:08:29

Crows
Member
From: Wales
Registered: 2008-09-05
Posts: 92

Re: Fonts in Awesome wm [SOLVED]

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

#5 2009-08-15 21:22:08

TomE
Member
Registered: 2005-08-06
Posts: 164

Re: Fonts in Awesome wm [SOLVED]

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

#6 2009-08-15 21:56:28

greylogic
Member
Registered: 2009-08-15
Posts: 14

Re: Fonts in Awesome wm [SOLVED]

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

Board footer

Powered by FluxBB