Topic: font subpixel smoothing
Where do I find the subpixel smoothing setting in 8.10.02?
CrunchBang Linux Forums » Help & Support (Stable) » font subpixel smoothing
Where do I find the subpixel smoothing setting in 8.10.02?
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 ![]()
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)
Thanks for the suggestions. I will try ASAP after work.
<?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>how can I set the fonts to 96 DPI? thx!
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!
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).
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
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
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).
Ok, thanks - but I still get the error for local.conf
Is the local.conf file located under /etc/fonts/?
I dont have that file; I think you can do without it.
Yes it is. Do you have pixel-smoothing? I honestly am not sure if the tweak has worked for me.
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)
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.
By restart X, I mean press Ctrl-Alt-Backspace.
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>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
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? ![]()
Cool. I deleted my /etc/fonts/local.conf on the suggestion of another user. I'm the only user anyway.
I'll ask Zoids question over, what's the default DPI or how can I change it (via .fonts.conf)?
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)
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)
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?
Posts [ 1 to 25 of 29 ]
CrunchBang Linux Forums » Help & Support (Stable) » font subpixel smoothing
Forums powered by PunBB. Hosted by Linode.
Copyright © CrunchBang Linux.
Proudly powered by Debian GNU/Linux.
Debian is a registered trademark of Software in the Public Interest, Inc.