return to is this even a language?

Green antialiasing in Gimp

02 Aug 2013

Some users have issues with their font anti aliasing – everything but black on white will appear to have green seems:

sample showing the broken anti aliasing in Gimp

While it’s possible to work around this bug, fixing it would be much more comfortable. The recommendation usually is to fiddle with the font anti aliasing settings in a Gnome/KDE GUI dialog. Using i3wm, this unfortunately did not work for me.

Instead, I had to update my ~/.fonts.conf file so that the rgba setting is invalid or set to none. I’m quite sure rgb would be correct for me, but for some reason this triggers the bug in Gimp. After changing the value and restarting Gimp, all newly created font elements in Gimp work just fine. Old ones need to be forced to re-render. You can do this by adding and removing a letter.

I haven’t rebooted yet, but the change didn’t seem to affect system font anti aliasing. For reference, here’s the full file:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <match target="font">
  <edit mode="assign" name="rgba">
   <const>none</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hinting">
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hintstyle">
   <const>hintslight</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="antialias">
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="lcdfilter">
   <const>lcddefault</const>
  </edit>
 </match>
 <match target="font" >
  <edit name="embeddedbitmap" mode="assign">
   <bool>false</bool>
    </edit>
  </match>
</fontconfig>