Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am using the xmonad windows manager under Linux Mint 13 and is lacking a smooth font rendering.

Under MATE or Cinnamon, the fonts are smoothed, and choosing the session xmonad with Gnome, fonts are smoothed also. In addition, if I run gnome-settings-daemon while in xmonad, the fonts become smoothed also.

But is there a way to have nice looking fonts without resorting to Gnome?

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

Fontconfig is a library designed to provide system-wide font configuration, customization and application access. The intent is to make font configurations relatively static, and shared by as many applications as possible.

I have a file called .fonts.conf on my $HOME folder to provide the same font rendering for both Qt and GTK+ applications. Here is a copy of it, which should be a sane configuration for you to get started, but you may also have a look at man fonts-conf for details:

<?xml version='1.0'?><!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
  <match target="font">
    <edit mode="assign" name="antialias">
      <bool>true</bool>
    </edit>
    <edit mode="assign" name="hinting">
      <bool>true</bool>
    </edit>
    <edit mode="assign" name="hintstyle">
      <const>hintslight</const>
    </edit>
    <edit mode="assign" name="rgba">
      <const>rgb</const>
    </edit>
    <edit mode="assign" name="lcdfilter">
      <const>lcdlight</const>
    </edit>
  </match>
  <dir>~/.fonts</dir>
</fontconfig>
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.