You are not logged in.
Hello chameleon 
I believe this can be achieved via an entry in ~/.fonts.conf. If you do not already have the file, create it and copy the following into it:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit name="rgba" mode="assign"><const>rgb</const></edit>
</match>
</fontconfig>Change rgb to bgr if you need to use B-G-R subpixel rendering. For system-wide use, add that text to /etc/fonts/local.conf.
The change takes effect immediately, but you may want to log out so that everything on the desktop is updated.
Ref: http://jmason.org/howto/subpixel.html
--
Not sure if this will be of interest to you, but hinting can also be achieved with an additional entry:
<match target="font">
<edit name="autohint" mode="assign">
<bool>true</bool>
</edit>
</match>Ref: http://tombuntu.com/index.php/2008/10/1 … ppearance/
Hope this helps 
Offline
Heres a full .fonts.conf (source):
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<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>
<match target="font" >
<edit mode="assign" name="rgba" >
<const>rgb</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="antialias" >
<bool>true</bool>
</edit>
</match>
</fontconfig>For my conf, I just included the antialias part. Its not much but my fonts look prettier 
Last edited by anonymous (2009-01-19 22:10:55)
Note: ** Please read before posting **
BTW if you wish to contact me, send me an e-mail instead of a PM.
Offline
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<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="antialias"><bool>true</bool></edit>
<edit mode="assign" name="autohint"><bool>false</bool></edit>
<edit mode="assign" name="hintstyle"><const>hintslight</const></edit>
</match>
</fontconfig>Offline
how can I set the fonts to 96 DPI? thx!
Cheers, Big Ears!
DΞLL Precision M6500 "Big Dog": i7-820QM w/USB 3.0, 8.0GB DDR3-1333, Intel x-25M 160 G2 + 500GB 7200.3, nVidia Quadro FX 3800M 1.0GB DDR3, RGBLED, Intel 6300 //Win7Pro x64/Sabayon KDE 4.5.4 x64
Offline
I am having trouble with this. I am a newbie to Linux with basically 0 skills. What I attempted to do was open the conf file (/etc/fonts/fonts.conf) in leafpad (by typing sudo leafpad /etc/fonts/fonts.conf in a terminal) in order to add the necessary scripting. However, when the text editor opened there was nothing there. I already had a fonts.conf file on the system (with script on it) before trying this. So why is the text editor empty when I open it? Please help - thanks!
Offline
Alright I followed the directions, got some wierd messages about xml being in the first line and now I don't know if pixel smoothing is on or not (fonts still look pretty crappy to me).
Offline
Alright I followed the directions, got some wierd messages about xml being in the first line and now I don't know if pixel smoothing is on or not (fonts still look pretty crappy to me).
in your home directory....the file you want is .fonts.conf that's DOT fonts DOT conf
Cheers, Big Ears!
DΞLL Precision M6500 "Big Dog": i7-820QM w/USB 3.0, 8.0GB DDR3-1333, Intel x-25M 160 G2 + 500GB 7200.3, nVidia Quadro FX 3800M 1.0GB DDR3, RGBLED, Intel 6300 //Win7Pro x64/Sabayon KDE 4.5.4 x64
Offline
I just opened an app. I installed (see unable to mount windows partition thread). and after tyoing in the command in the terminal I got the message
Fontconfig error: "~/.fonts.conf, line 1: XML or text declaration not at start of entity
Fontconfig error: "local.conf, line 1: XML or text declaration not at start of entity
Please help me
Offline
Open the file .fonts.conf and just delete any lines it has. Now reopen it and copy and paste one of the examples above into the file and save.
Now press Ctrl-Alt-Backspace to restart X (you will have to relogin etc, so save any data beforehand).
Note: ** Please read before posting **
BTW if you wish to contact me, send me an e-mail instead of a PM.
Offline
Ok, thanks - but I still get the error for local.conf
Offline
Is the local.conf file located under /etc/fonts/?
I dont have that file; I think you can do without it.
Note: ** Please read before posting **
BTW if you wish to contact me, send me an e-mail instead of a PM.
Offline
Yes it is. Do you have pixel-smoothing? I honestly am not sure if the tweak has worked for me.
Offline
Delete it, restart X, and check if you get any errors.
Oh and yes I do have font smoothing.
Last edited by anonymous (2009-04-03 01:45:25)
Note: ** Please read before posting **
BTW if you wish to contact me, send me an e-mail instead of a PM.
Offline
What s "restart X"? BTW, I'm pretty sure I don't have pixel smoothing, though I have restarted the system since configuring .fonts.conf as suggested.
Offline
By restart X, I mean press Ctrl-Alt-Backspace.
Note: ** Please read before posting **
BTW if you wish to contact me, send me an e-mail instead of a PM.
Offline
Or if you like Apple's rendering, try this -
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font" >
<edit mode="assign" name="autohint" >
<bool>true</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="rgba" >
<const>none</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hinting" >
<bool>false</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hintstyle" >
<const>hintnone</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="antialias" >
<bool>true</bool>
</edit>
</match>
</fontconfig>Offline
So, did you all do this: "For system-wide use, add that text to /etc/fonts/local.conf."? Can someone please tell me what that means exactly? Thanks
Offline
so here's how it works: the system looks first in your home directory for a file named
.fonts.conf. Then it looks for a file called
/etc/fonts/local.conf.
The file in your home directory is given preference--whatever's in there is applied. The system then says "Ok, so for these other settings...does the file in /etc say anything about those?"
The trick is that no matter what user you log in as, it always falls back to /etc/fonts/local.conf (to add that text, open /etc/fonts/local.conf in a text editor. You'll have to do that from the command line--since it's a system file, you'll need to use administrator privileges to edit it. Try:
gksu gedit /etc/fonts/local.confThat should let you edit the file. Then just paste that text in to the end of the file. That SHOULD do it.)
The idea is I can set font rendering the way I think looks good, and so can my wife. We each have our own
.fonts.confin our own home directories.
What's not written in each file falls back to the settings in /etc.
So if you want to change things for everybody who ever might use the system, change the file at
/etc/fonts/local.conf. If you just want to change YOUR settings, change
.fonts.confin your home directory.
When I was new to Linux, I tended to edit the system file (because I was pretty much the only user on my laptop). But the 'Linux way' to do it is to make the edits in your home dir. And here's why:
When you go to change distros or upgrade to Jaunty or whatever, you can backup pretty much all the config files in your home dir. Then if Jaunty's (or whatever distro you try) font rendering sucks, or whatever, you can just copy the old
.fonts.conffile over to your new home directory and suddenly all the tweaking you're doing right now will be applied.
And that'll work on (almost) any distro you try out. It's not a hard and fast rule, of course, but anytime there's programs shared between distros, they're usually configured the same way. Which means the config file in your directory has all your tweaks in it. So you're good to go.
How's that for a long-winded response that probably doesn't quite answer your question? 
Peaces, crazybilly
Offline
Cool. I deleted my /etc/fonts/local.conf on the suggestion of another user. I'm the only user anyway.
Offline
I'll ask Zoids question over, what's the default DPI or how can I change it (via .fonts.conf)?
Offline
To check your current DPI, run this:
xdpyinfo | grep resolutionTo change the DPI, make sure xrandr is installed and run (just change the number):
xrandr --dpi 96 &The setting isn't permament though.
Last edited by anonymous (2009-04-27 21:17:19)
Note: ** Please read before posting **
BTW if you wish to contact me, send me an e-mail instead of a PM.
Offline
If you use an Nvidia driver, adding the the following option to the shown section below will make 96 dpi permanent:
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "Quadro FX 770M"
Option "DPI" "96 x 96"
EndSectionLast edited by theZoid (2009-08-02 21:55:28)
Cheers, Big Ears!
DΞLL Precision M6500 "Big Dog": i7-820QM w/USB 3.0, 8.0GB DDR3-1333, Intel x-25M 160 G2 + 500GB 7200.3, nVidia Quadro FX 3800M 1.0GB DDR3, RGBLED, Intel 6300 //Win7Pro x64/Sabayon KDE 4.5.4 x64
Offline
Open the file .fonts.conf and just delete any lines it has. Now reopen it and copy and paste one of the examples above into the file and save.
Now press Ctrl-Alt-Backspace to restart X (you will have to relogin etc, so save any data beforehand).
WHAOH WHAOH!
aparently you dont remember the heated battle that took place here a few weeks ago about CTRL+ALT+BKSP being removed from crunchbang?
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.