I know how to install TrueType fonts (by copying them to /usr/share/fonts/truetype
and doing sudo fc-cache -f
) but what about OTF formats?
I didn't find a suitable folder to copy them to.
I know how to install TrueType fonts (by copying them to /usr/share/fonts/truetype
and doing sudo fc-cache -f
) but what about OTF formats?
I didn't find a suitable folder to copy them to.
The directory you're looking for is
/usr/share/fonts/opentype
. If it's not there, you can just create it. Copy your OTF files there; this will install the font for all users. Then, recreate the fonts cache with the commandsudo fc-cache -f -v
.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:
Using the standard library on Linux, the OTF fonts don't loads. Must install addictive library based on your system configuration, libotf for example.
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!
If you are copying your OTF fonts in
~/.fonts
or/usr/share/fonts/opentype
remember to replace the spaces in their name with an underscore likeFont Awesome 5 Free-Regular-400.otf
-->Font_Awesome_5_Free_Regular_400.otf
It did not work for me if they were not named in this manner I don't know if it was a problem with my system or if it is like this only.
Another approach is to convert the OTF font to TTF. There are free online converters where you upload the OTF font files and they are then converted to TTF. You then open with the font viewer and install as per usual. I've just done this and the font installed fine.