Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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]
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>
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.