Help: How to disable font smoothing?

Hello everybody! I just moved from gnome to xmonad and think it's good. I prefer fonts not to be smoothed, so in gnome I use gnome-appearance-settings and set the smoothing option to 'none' (other options are 'gray scale' and 'subpixel'). How to configure those in xmonad? (By default, the fonts in firefox in xmonad are smoothed.), and how to set the background and text colors of applications in general? -- Sincerely, Yuliang Wang

XMonad is just a window manager and it does not tweak with settings like
fonts, cursor, background or any appearance at all.
I'm guessing that you're running xmonad without a DE (Desktop Environment,
which is a set of apps that let you easily adjust these this).
If you find too difficult (I do) to set them manually
(gathering specific apps, commands and config files),
you can use xmonad *with* a DE like gnome (I use XFCE), so you won't miss
their easiness.
Regards,
Henrique G. Abreu
On Sat, Dec 12, 2009 at 10:51, Yuliang Wang
Hello everybody! I just moved from gnome to xmonad and think it's good. I prefer fonts not to be smoothed, so in gnome I use gnome-appearance-settings and set the smoothing option to 'none' (other options are 'gray scale' and 'subpixel'). How to configure those in xmonad? (By default, the fonts in firefox in xmonad are smoothed.), and how to set the background and text colors of applications in general?
-- Sincerely, Yuliang Wang
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

On Sat, Dec 12, 2009 at 07:51:10AM -0500, Yuliang Wang wrote:
Hello everybody! I just moved from gnome to xmonad and think it's good. I prefer fonts not to be smoothed, so in gnome I use gnome-appearance-settings and set the smoothing option to 'none' (other options are 'gray scale' and 'subpixel'). How to configure those in xmonad? (By default, the fonts in firefox in xmonad are smoothed.), and how to set the background and text colors of applications in general?
there is no "general" solution as it depends on the app. In theory GTK apps should respect settings in .gtkrc and friends. Likewise, many apps will respect settings in .Xdefaults, particularly things like X terminal emulators. A couple of firefox about:config settings that might help:
browser.display.auto_quality_min_font_size
sets the minimum size for using "quality" fonts. The default for everything below this size is a fast but ugly font, apparently. So tweaking this value may get you what you want.
gfx.use_text_smoothing_setting
should be fairly obvious. Mozzila claims this is an OS X only option, but there are some reports of people having success with it in linux. ymmv. A

As others have mentioned, the easiest way to do this is just to run
the GNOME settings daemon (or the XFCE/KDE equivalent). If you don't
want to do that for some reason, then read on...
Yuliang Wang
I prefer fonts not to be smoothed, so in gnome I use gnome-appearance-settings and set the smoothing option to 'none' (other options are 'gray scale' and 'subpixel'). How to configure those in xmonad?
The simple way is to set the corresponding X resources -- you're
probably after something like:
Xft.antialias: 0
Xft.hinting: 1
Xft.hintstyle: hintfull
Xft.rgba: rgb
This is what the GNOME settings system is actually doing underneath;
graphics toolkits like GTK and Qt then look at those resources to decide
how fonts should be rendered. (The usual place to put those lines is in
~/.Xresources, and you can load them into the X server by saying "xrdb
-merge ~/.Xresources".)
If you want to do something more complicated (e.g. you'd like to disable
antialiasing only for some fonts, or only beneath a certain size), you
can edit ~/.fonts.conf, which contains custom rules for the fontconfig
library that modern applications use to list and select fonts. If you
had a font called "Antenna" that you wanted to not be antialiased, then
you could say something like:
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<test name="family"><string>Antenna</string></test>
<edit name="antialias" mode="assign"><bool>false</bool></edit>
<edit name="hinting" mode="assign"><bool>true</bool></edit>
<edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
<edit name="rgba" mode="assign"><const>rgb</const></edit>
</match>
</fontconfig>
If you left out the
[...] how to set the background and text colors of applications in general?
For GTK applications, you can specify the font and theme by putting
something like this in ~/.gtkrc-2.0:
gtk-font-name = "Liberation Sans 11"
gtk-theme-name = "Xfce-curve"
--
Adam Sampson

On Sat, 2009/12/12 07:51:10 -0500, Yuliang Wang wrote:
I prefer fonts not to be smoothed, so in gnome I use gnome-appearance-settings…. How to configure those in xmonad? (By default, the fonts in firefox in xmonad are smoothed.), and how to set the background and text colors of applications in general?
If you run gnome-settings-manager (from .xsession, for example), GNOME-aware applications should have the same settings as they did under GNOME. This loads (non-UI) parts of GNOME, so it uses more memory than configuring each application separately, but it is convenient.
participants (5)
-
Adam Sampson
-
Andrew Sackville-West
-
Henrique G. Abreu
-
lithis
-
Yuliang Wang