LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-05-2004, 12:24 PM   #1
bleargh
Member
 
Registered: Jul 2004
Location: New York, NY
Distribution: Ubuntu
Posts: 67

Rep: Reputation: 16
How do I turn off font anti-aliasing?


Finding the setting for KDE is easy enough, but a lot of things (that use GTK?), menu bars, browser text, Konsole, still have anti-aliased fonts. I found a setting for XftConfig that supposedly turns off anti-aliasing for everything X for middle-size fonts, leaving it on for very large and very small fonts, which would be fine. But it doesn't work. I've been searching all over the internet and forums for about 2 hours, and found nothing. KDE's setting took about 2 minutes to find.

switch, switch2, and xfontsel don't do it, as others have suggested.

xft-config might do it? but i can't find how to use it.

[newb rant]Why is Linux so freaking hard to use!?!?! It is impossible to find good help! GRR.[/rant]
 
Old 09-05-2004, 04:53 PM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
you probably need to edit a fonts.conf file. Look for a
.fonts.conf
in your home directory (it's a hidden file). If it doesn't exist, simply create it. Here is what mine says:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font" >
<test compare="more" name="size" qual="any" >
<double>7</double>
</test>
<test compare="less" name="size" qual="any" >
<double>16</double>
</test>
<edit mode="assign" name="antialias" >
<bool>false</bool>
</edit>
</match>
<match target="font" >
<test compare="more" name="pixelsize" qual="any" >
<double>9</double>
</test>
<test compare="less" name="pixelsize" qual="any" >
<double>20</double>
</test>

You can adjust the numbers to your liking. I think the size is point size and pixel size is what it says - not sure, though.
<edit mode="assign" name="antialias" >
<bool>false</bool>
</edit>
</match>
</fontconfig>
 
Old 09-05-2004, 06:46 PM   #3
bleargh
Member
 
Registered: Jul 2004
Location: New York, NY
Distribution: Ubuntu
Posts: 67

Original Poster
Rep: Reputation: 16
My eyes! I can see clearly!

Thank you so much. I made the .font.conf file directly copied from yours as it didn't exist. I had already tried a similar configuration in some other file according to someone's directions, which didn't have any effect. So I was pessimistic about this, but it worked! I would be even happier if I could change the font size and face. I assume there is a similar way to do it?

(And why aren't there utilities for changing these things? Seems like a rather basic thing to have.)

Also, I'd like to make it global, so that GDM and such are not anti-aliased.

Last edited by bleargh; 09-05-2004 at 06:58 PM.
 
Old 09-05-2004, 07:56 PM   #4
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
for making it global:
try copying the .fonts.conf file to /etc/fonts/local.conf
You have to be root and if local.conf doesn't exist, just create it.

I'm not sure what you have in mind by changing type face and size. Most of it controlled by the individual applications. You can take a look at /etc/fonts/fonts.conf. It has some settings that you could change. The alias sections are ones that I change so I'm not stuck with an ugly serif font. Go through the file and you can probably figure out a few things. You have to restart X for some of the changes to take effect (pressing ctrl-alt-backspace at the gdm screen will probably do it). Also, be absolutely sure to make a backup before changing anything.
 
Old 09-14-2004, 07:32 PM   #5
bleargh
Member
 
Registered: Jul 2004
Location: New York, NY
Distribution: Ubuntu
Posts: 67

Original Poster
Rep: Reputation: 16
i copied the file. it made it global! thank you very much. first gripe i've had with linux that's actually been fixed satisfactorily.

1 down, 54326543759876987 to go...
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Font anti-aliasing Shagrath239 Slackware 4 02-08-2005 12:40 AM
Mandrake 9.2: Problem with font anti-aliasing after applying latest patches rps63ifid Mandriva 2 10-05-2004 06:56 AM
How to turn off anti-aliasing for font sizes < 12pts ? kums Linux - Software 2 07-09-2004 10:51 AM
How to turn text anti-aliasing globally off in Debian? sylph Linux - Newbie 2 05-24-2004 05:58 AM
How do I get font anti-aliasing to work in KDE? Abdul Linux - Software 2 03-18-2004 05:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration