LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 03-15-2015, 05:39 AM   #1
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Rep: Reputation: 73
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?
 
Old 03-15-2015, 11:36 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
.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.
 
Old 03-15-2015, 12:02 PM   #3
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,139

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
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!
 
Old 03-15-2015, 12:18 PM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Quote:
Originally Posted by DavidMcCann View Post
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.
 
Old 03-16-2015, 01:14 AM   #5
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
/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?
 
Old 03-16-2015, 11:02 PM   #6
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What does ending Ubuntu 9.04 mean mochapolo Linux - Newbie 11 10-05-2010 07:51 AM
Firefox "Save File" dialog for .otf font file on 1 server and not on another HighLQ Linux - Server 4 05-28-2010 07:59 AM
Adding OpenType (OTF) fonts to X in Slackware 10.2 Yalla-One Slackware 24 06-11-2007 09:06 AM
Printing otf fonts davidsrsb Slackware 0 04-27-2006 02:33 AM
Install OTF fonts in RHEL WS 4 vadoo Linux - Security 1 06-17-2005 08:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration