Page 1 of 1

open type fonts (.otf)

Posted: 6. Dec 2012, 19:16
by mrstordal
Hello!
I have a lot of open type fonts that I want on my Salix (Ratpoison Edition).
I tried to install one, putting it in the folder for true type fonts (usr/share/fonts/TTF).
It's there, showing in Libre Office, but I can't get it to work...

Any tips on this one? Is there anything else I need to install?

Re: open type fonts (.otf)

Posted: 10. Dec 2012, 00:23
by slack631
Try this way:

Code: Select all

mkdir /usr/share/fonts/OTF
cp font.otf /usr/share/fonts/OTF/
fc-cache
mkfontdir /usr/share/fonts/OTF 
hope it would help.
Edit:
You might need to change permissions on the fonts;
if some application is unable to use them.

Re: open type fonts (.otf)

Posted: 10. Dec 2012, 10:41
by mrstordal
Thank you very much, it worked! :D
I didn't need to look into file permissions at this point.
May I ask what the "fc-cache" and the "fontdir" is?
Again, thanks for the help!

Re: open type fonts (.otf)

Posted: 22. Dec 2012, 00:37
by slack631
Hi,
In case that it is necessary to change permissions on the fonts,
should be like this: "chmod 755 /usr/share/fonts/OTF && chmod 644 /usr/share/fonts/OTF/ * "
Maybe after that go to directory OTF and update fonts: "mkfontscale . && mkfontdir . && fc-cache -f"
Someone should correct me if I made some mistakes.

I'm glad it has helped anyway

thanks