Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old November 6th, 2004   #1
Julius
Gee! These Aren't Roasted!
 
Join Date: Oct 2004
Beans: 165
HOWTO: Disable antialiasing for some font-sizes

This will work to disable antialiasing for fonts that are using a size less than 9 or 10.
In windows, some font sizes (I think from 6 to are never antialiased, because they would look too blurry. In kde there's an option to avoid antialising for some fontsizes, and you can do the same for gnome editing a simple file.
With this, webpages using small fonts (8pt) will look clearer. Of course, all fonts in your system with that size will look without antialiasing.

Edit your /etc/fonts/local.conf with root priviledges (sudo nano /etc/fonts/local.conf). I think you can also create a file in your home directory called ./fonts.com, but I'm not sure of this.


Add the following to that file (inside the XML tree)
Code:
        <match target="pattern">
                <test qual="any" name="size" compare="less">
                        <double>10</double>
                </test>
                <edit name="antialias" mode="assign">
                        <bool>false</bool>
                </edit>
        </match>
        <match target="pattern">
                <test qual="any" name="pixelsize" compare="less">
                        <double>14</double>
                </test>
                <edit name="antialias" mode="assign">
                        <bool>false</bool>
                </edit>
        </match>
Some applications ignore "size" and use "pixelsize" instead.
Fonts equal or smaller than 9-10px (I'm still not sure: try changing the values between the <double> labels.) should show without any antialising.
Julius is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:54 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry