open type fonts (.otf)

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
mrstordal
Posts: 51
Joined: 6. Oct 2012, 07:10
Location: Tonsberg, Norway
Contact:

open type fonts (.otf)

Post 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?
User avatar
slack631
Posts: 51
Joined: 26. Dec 2011, 05:22

Re: open type fonts (.otf)

Post 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.
User avatar
mrstordal
Posts: 51
Joined: 6. Oct 2012, 07:10
Location: Tonsberg, Norway
Contact:

Re: open type fonts (.otf)

Post 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!
User avatar
slack631
Posts: 51
Joined: 26. Dec 2011, 05:22

Re: open type fonts (.otf)

Post 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
Post Reply