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
2
3
# 1. Create the "~/.fonts" directory.
mkdir ~/.fonts
# 2. Copy the ttf files into the "~/.fonts" directory. Done.

Mac

From here.

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

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

Command line makes life easier.

Comments