Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-15-2015, 05:39 AM
|
#1
|
Senior Member
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,151
Rep:
|
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?
|
|
|
03-15-2015, 11:36 AM
|
#2
|
Senior Member
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524
|
.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.
|
|
|
03-15-2015, 12:02 PM
|
#3
|
LQ Veteran
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,180
|
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!
|
|
|
03-15-2015, 12:18 PM
|
#4
|
Senior Member
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524
|
Quote:
Originally Posted by DavidMcCann
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.
|
|
|
03-16-2015, 01:14 AM
|
#5
|
Senior Member
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,151
Original Poster
Rep:
|
/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?
|
|
|
03-16-2015, 11:02 PM
|
#6
|
Senior Member
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524
|
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 03:09 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|