LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   fonts with ending .otf (https://www.linuxquestions.org/questions/linux-software-2/fonts-with-ending-otf-4175536787/)

Pedroski 03-15-2015 05:39 AM

fonts with ending .otf
 
I downloaded some Chinese fonts. They have the ending .otf

I have found the easiest way to get fonts on my computer is download the font, copy it into /usr/share/fonts/somefolder then

sudo fc-cache -rv

However, the fonts with the ending .otf are not picked up by this.

Any tips please?

veerain 03-15-2015 11:36 AM

.otf fonts are opentype fonts. I think it is neccesary to include the font installed directory in configuration file located at /etc/fonts/fonts.conf or /etc/fonts/conf.d/somefiles.

DavidMcCann 03-15-2015 12:02 PM

This is odd: I have otf fonts which work perfectly.

Do they work if installed in $HOME/.fonts ? There shouldn't be a difference, but computers can be funny things.

You could also try
sudo mkfontdir /usr/share/fonts/somefolder
sudo mkfontscale /usr/share/fonts/somefolder
I never use these nowadays but, again, you never know!

veerain 03-15-2015 12:18 PM

Quote:

Originally Posted by DavidMcCann (Post 5332519)
sudo mkfontdir /usr/share/fonts/somefolder
sudo mkfontscale /usr/share/fonts/somefolder

These commands are not needed for truetype and opentype fonts.

They were needed for older fonts distributed with XFree86/Xorg.

Pedroski 03-16-2015 01:14 AM

/etc/fonts/conf.d/fonts.conf is an xml file, which opens in Firefox when I click it.

I can't see anything to make it include .otf

All the files in /etc/fonts/conf.d/ and /etc/fonts/conf.avail/ are xml files.

Any more tips out there please?

veerain 03-16-2015 11:02 PM

Open them in text editor. They are usually well commented so that you can add in easily.

Also can you just copy/symlink the otf file to a directory which gets it font included already.


All times are GMT -5. The time now is 11:05 PM.