Contents

Install Fonts

Install custom fonts and make the system sees it using fc-cache

Per user

Copy the font files to ~/.local/share/fonts/. Then, run fc-cache to rebuild the font cache.

1
fc-cache -fv

System-wide

Copy the font files to /usr/share/fonts/. Then, run fc-cache to rebuild the font cache.

1
sudo fc-cache -fv /usr/share/fonts/

Improve font rendering

Font rendering @ Manjaro wiki

/etc/fonts/local.conf

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
<match target="font">
  <edit name="autohint" mode="assign">
    <bool>true</bool>
  </edit>
  <edit name="hinting" mode="assign">
    <bool>true</bool>
  </edit>
  <edit mode="assign" name="hintstyle">
    <const>hintslight</const>
  </edit>
  <edit mode="assign" name="lcdfilter">
   <const>lcddefault</const>
 </edit>
</match>

‘~/.Xresources’

1
2
3
4
5
6
7
Xft.dpi: 96
Xft.antialias: true
Xft.hinting: true
Xft.rgba: rgb
Xft.autohint: false
Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault

And finally run

1
xrdb -merge ~/.Xresources