LinuxQuestions.org
Visit Jeremy's Blog.
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 22.04
Posts: 2,151

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, Salix
Posts: 6,180

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
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 22.04
Posts: 2,151

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:09 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