Monday, February 24, 2014

Install and configure TrueType fonts in Linux


  1. Download *.ttf fonts to a directory and add it to the font path, a list of directories containing fonts:
  2. Create a directory for new fonts
    1. mkdir /usr/share/fonts/ttf
  3. Move the font files to the new font directory
    1. mv *.ttf /usr/share/fonts/ttf
  4. Navigate to the font directory
    1. # cd /usr/share/fonts/ttf
  5. Create fonts.scale and fonts.dir
    1. # mkfontscale && mkfontdir
    2. # fc-cache