Gangmax Blog

自由之思想,独立之精神

How to Install Font on Ubuntu and Mac

Here are the instructions how to install font(ttf files) on Ubuntu and Mac.

Ubuntu

From here.

1
# 1. Create the "~/.fonts" directory.
2
mkdir ~/.fonts
3
# 2. Copy the ttf files into the "~/.fonts" directory. Done.

Mac

From here.

1
# 1. Create the "~/Library/Fonts" directory.
2
mkdir ~/Library/Fonts
3
# 2. Copy the ttf files into the "~/Library/Fonts" directory. Done.
4
# 3. The "~/Library/Fonts" directory is user level font directory. For
5
# system level, use "/Library/Fonts" instead.

The font I’m using is “DejaVu Sans Mono“.

Command line makes life easier.

Comments