Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know how to install true-type fonts (by copy them to /usr/share/fonts/truetype and do sudo fc-cache -f) but what about otf formats? I didn't find a suitable folder to copy them.

share|improve this question
up vote 69 down vote accepted

The directory you're looking for is /usr/share/fonts/opentype. If it's not there, you can just create it. This will install the font for all users.

You can also install fonts per user at ~/.fonts/. It makes no difference whether they're in any sub-folders or what type they are. Mine, as an example, are organised by foundry.

Alternatively, you can just double click them, this will open them with the Font Viewer, which let's you install them with one click:

alt text

share|improve this answer
Note: I'm almost certain it doesn't make a difference as long as they are somewhere in /usr/share/fonts/ or ~/.fonts/, but it's a good idea to keep things organised. – Stefano Palazzo Dec 21 '10 at 8:49
I want to use them wide system! – Behzadsh Dec 21 '10 at 8:55
If you want to use the font system wide then put your fonts in /usr/share/fonts/opentype – karthick87 Dec 21 '10 at 8:57
Isn't it necessary to update the font cache? sudo fc-cache -f -v – gertvdijk Aug 20 '13 at 14:27
@StefanoPalazzo I may be wrong but there is something missing in your answer: only creating the directory will not install anything ;-) – guntbert Aug 20 '13 at 15:15

You have to create the folder '/usr/share/fonts/opentype', then add the 'otf' file with the font that you want to include, it works for me!

share|improve this answer

Using the standard library on Linux, the OTF fonts don't loads. Must install addictive library based on your system configuration, libotf for example.

share|improve this answer

If you want to use this font in a website, this font is not going to be reflected in the client (the browser), you can add this line to your css file, then the font is going to be downloaded to the client, and this will be reflected in each client who enters your website:

@font-face {
    font-family: 'Font_name';
    src: url('public url where you publish the css file');
share|improve this answer
Welcome to askubuntu! While this answer is interesting, it doesn't appear to be related to the question asked which is specifically about installing otf fonts on a system, and has nothing to do with a browser. Perhaps you'd like to ask a new question more suited to this answer and answer it yourself with this one. It's unlikely that anyone looking to push a font file to a client will find this question in there search. – Elder Geek Apr 29 '15 at 14:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.