Sunday, April 19, 2009

Using True Type Fonts with Ubuntu

My wife does a fair bit of crafty stuff, and often finds weird and wonderful fonts to use with her creations. Often they're Windows TTF font files, which aren't linux native.

I simply get her to copy the fonts into a particular directory, and then run the following script.

sudo cp *.ttf /usr/share/fonts/truetype/username/
sudo cp *.TTF /usr/share/fonts/truetype/username/
mv *.ttf /home/username/Fonts/installed/
mv *.TTF /home/username/Fonts/installed/
sudo fc-cache -f -v
You can get all the bacground and other information you'll need in this article on the Ubuntu Wiki, which is where I got a lot of the info for this post.

It simply copies the files into a folder I created to hold installed TTF fonts, (/usr/share/fonts/truetype/username/) which will work for everyone, and then move the filed from the "todo" folder into a backup folder for reference. ( /home/username/Fonts/installed/ )

You'll have to restart any apps (Such as open office) to see the new fonts, but there's no need to log out or reboot.

Note, I commented on this issue a while back, here's the previous post.

No comments: