12

I had "WinFonts" folder in home directory including many true type fonts (.ttf) which I would like to install to be applied for use widely across Ubuntu system and apps. I need help guiding me to make this step?

Jorge Castro
  • 73,717

1 Answers1

14

Installing TTF fonts system wide it's not difficult. You just need to create a directory inside one of the system font directories (you find them listed in /etc/fonts/fonts.conf), put there your *.ttf fonts and then update system font cache with fc-cache -fv (With the options -f for Force re-generation of cache files and -v for Verbose).

As suggested by @emk2203 you should put custom fonts in a subdirectory of /usr/local/share/fonts, so it's easy to tell them apart from distributor provided fonts (they are in /usr/share/fonts), and it's easier to backup or restore them if needed.

Step by step:

  1. Create your custom fonts directory:

    sudo mkdir /usr/local/share/fonts/truetype

  2. Copy your *.ttffonts there:

    sudo cp ~/myfonts/*.ttf /usr/local/share/fonts/truetype/

  3. Update system font cache:

    sudo fc-cache -fv

If you want to add more fonts later, just copy them to your /usr/local/share/fonts/truetype/ directory and update system font cache as above.

gerlos
  • 2,904