You are not logged in.

#1 2008-10-24 08:11:32

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

How to use Xft.xrdb with LXDE to get proper font rendering ?

hi ,
I've been playing around with Arch Linux in Virtualbox and I'm impressed so far .
I'm installing Arch this weekend in my Desktop .

One thing I couldn't figure out yet (It's not Arch specific) .
Xfce settings renders my fonts properly and It saves the configuration to a file :
/home/username/.config/xfce/Xft.xrdb

Xft.antialias: 1
Xft.hinting: 1
Xft.hintstyle: hintslight
Xft.rgba: rgb

How do I get the same effect with LXDE or any other light WM .

BTW , '.fonts.conf' is useless ( And that's not Arch specific)

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font" >
  <edit mode="assign" name="antialias" >
   <bool>true</bool>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="rgba" >
   <const>rgb</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>hintslight</const>
  </edit>
 </match>
</fontconfig>

Screenshot 1 : (Xfce)
http://img372.imageshack.us/img372/810/ … ot3ow8.png

Screenshot 2 : (LXDE)
http://img412.imageshack.us/img412/576/ … ot4tr5.png

Last edited by Nezmer (2008-10-24 11:57:55)


English is not my native language .

Offline

#2 2008-10-24 12:47:43

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: How to use Xft.xrdb with LXDE to get proper font rendering ?

I just found out that LXappearance (I think) creates a config file :
'/home/username/.config/lxde/config'

The config file has a line :

iXft/Antialias=1

The line actually enables Antialias .
How can I enable the other Xft options . I didn't find documentation for the config file .

I'm still trying to find out how to enable those options on a DE-independent way .


English is not my native language .

Offline

#3 2008-10-24 12:51:42

GERGE
Member
From: Turkey
Registered: 2008-09-29
Posts: 157
Website

Re: How to use Xft.xrdb with LXDE to get proper font rendering ?

LXDE uses Openbox which does not have a build-in font engine. Look here: http://wiki.archlinux.org/index.php/Fonts

I am using "LCD" packages and FreeType autohinter with Openbox. Works like a charm.

Last edited by GERGE (2008-10-24 12:53:13)

Offline

#4 2008-10-24 14:19:53

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: How to use Xft.xrdb with LXDE to get proper font rendering ?

GERGE wrote:

LXDE uses Openbox which does not have a build-in font engine. Look here: http://wiki.archlinux.org/index.php/Fonts

I am using "LCD" packages and FreeType autohinter with Openbox. Works like a charm.

I think LXappearance has Xft configuration capabilities (see my previous post) . They are just not documented .

What I really would like to know is how DEs (e.g XFCE with the Xft.xrdb file) actually works . That would be really useful .

BTW , I have a CRT monitor . So the LCD tricks are irrelevant . I'm mostly interested in 'hinting/hintslight' .

Last edited by Nezmer (2008-10-24 14:20:46)


English is not my native language .

Offline

#5 2008-10-24 14:30:54

creslin
Member
Registered: 2008-10-04
Posts: 241

Re: How to use Xft.xrdb with LXDE to get proper font rendering ?

I just add the Xft properties to my ~/.Xdefaults, but I'm not sure if that's what you mean.


ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.

Offline

Board footer

Powered by FluxBB