$XDG_CONFIG_HOME/fontconfig == $HOME/.config/fontconfig

On Ubuntu XDG_CONFIG_HOME is not defined. Its value defaults to $HOME/.config.

Edit $HOME/.config/fontconfig/fonts.conf:

<?xml version='1.0'?> 
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> 
<fontconfig> 
 <dir>~/.fonts</dir> 
 <match target="font"> 
  <edit mode="assign" name="autohint"> 
   <bool>false</bool> 
  </edit> 
 </match> 
 <match target="font"> 
  <edit mode="assign" name="rgba"> 
   <const>rgb</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> 
</fontconfig>
$ mkdir $HOME/.fonts
$ fc-cache -fv
Advertisements