archbox-linux / archbox-iso

Arch Linux + Openbox
2 stars 1 forks source link

Font subpixel fix #17

Closed glumoff closed 7 years ago

glumoff commented 8 years ago

In ~/.zshrc:

export GTK2_RC_FILES="$HOME/.gtkrc-2.0"

to apply xft settings for GTK2 applications.

Also may be ~/.config/fontconfig/fonts.conf needed:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <match target="font">
  <edit mode="assign" name="rgba">
   <const>none</const>
  </edit>
  <edit mode="assign" name="hinting">
   <bool>true</bool>
  </edit>
  <edit mode="assign" name="hintstyle">
   <const>hintmedium</const>
  </edit>
  <edit mode="assign" name="antialias">
   <bool>true</bool>
  </edit>
  <edit mode="assign" name="lcdfilter">
    <const>lcddefault</const>
  </edit>
 </match>
</fontconfig>
glumoff commented 8 years ago

a crucial moment is sourcing ~/.Xresources workaround is making symlink ~/.Xresources to ~/.Xdefaults (the last one is sourced)