Ubuntu – Xmonad changes font in terminal

12.04fontsxmonad

When I fire up a GNOME-Terminal in 12.04 This is the sort of font I get:

Normal Font

I really like it and want to keep it. When I run Xmonad and fire up a GNOME-terminal I get this sort of font:

Xmonad Font

Why are they different, and more importantly, how can I change it so that I get the first font when I use Xmonad?

Best Answer

Had exactly the same problem (with the same font), it seems your bottom screenshot uses "hintsfull" whilst the top one uses "hintslight" (which I prefer)

I corrected the problem by using the following ~/.Xresources

Xft.dpi: 96
Xft.lcdfilter: lcddefault
Xft.antialias: true
Xft.autohint: true
Xft.hinting: true
Xft.hintstyle: hintslight
Xft.rgba: rgb

For reference, I also use the following ~/.gtkrc-2.0

gtk-theme-name="Ambiance"
gtk-icon-theme-name="ubuntu-mono-dark"
gtk-font-name="Ubuntu 11"
gtk-cursor-theme-name="DMZ-White"
gtk-cursor-theme-size=24
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=0
gtk-menu-images=0
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=0
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintslight"
gtk-xft-rgba="rgb"

Alternatively, you can also run Xmonad under Gnome (I this case, Gnome controls the AA and you don't need to mess with config files) as it is quite widely documented, but to me, it defeats a bit the purpose of having an ultra-light WM.

Related Question