Blog is moving

My blog is moving to http://victormendonca.com/blog/. If you are looking for a specific or older post you are in the right place Otherwise check out my new page for more up to date content.

Monday, November 10, 2008

How to add True Type Fonts to Ubuntu


Ever wanted to add true type fonts to your Ubuntu machine? It's actually fairly simple.

1- Download the .ttf file to your machine
2- Create a new folder for your fonts under /usr/share/fonts/truetype/:
$ sudo mkdir /usr/share/fonts/truetype/myfonts

3- Move the .ttf file to the new created folder:
$ mv [ttf_file] /usr/share/fonts/truetype/myfonts

4- Use fc-cache to add the new fonts to the system
$ sudo fc-cache -f -v

More info on fc-cache:
NAME
fc-cache - build font information cache files

DESCRIPTION
fc-cache scans the font directories on the system and builds font information cache files for applications using fontconfig for their font handling.

No comments: