LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices



Reply
 
Search this Thread
Old 06-25-2013, 12:09 AM   #1
manoj.linux
Member
 
Registered: Aug 2007
Posts: 231

Rep: Reputation: 15
Question how to install font?


Hi,

I am having windows arial.ttf, would like to install on Linux.

Wheather below steps will install font or any addtional configuration needs to be done?

mkdir /usr/share/fonts/truetype/

coppied .ttf to /usr/share/fonts/truetype/

fc-cache -fv
 
Old 06-25-2013, 11:48 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,119

Rep: Reputation: 818Reputation: 818Reputation: 818Reputation: 818Reputation: 818Reputation: 818Reputation: 818
I would not mix add-on fonts with system fonts (you might lose them with a system upgrade).

Easier? Try this:
Code:
su -
<password>
mkdir -p /usr/local/share/fonts/TTF
cd /usr/local/share/fonts/TTF
<copy the font files to here>
mkfontscale
mkfontdir
That gets them ready for use -- note, you can use whatever name you like in place of TTF both here and below. You can, while you're at it, copy all extra .ttf files you have available into this same directory.

Then get into /etc/fonts and create a file, local.conf that looks like this:
Code:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/local.conf file to configure system font access -->
<fontconfig>
	<dir>/usr/local/share/fonts/TTF</dir>
</fontconfig>
Once that's done, the system knows where to find those fonts (you can add additional font directories in /usr/local/share/fonts as needed).

Last step:
Code:
su -
<password>
fc-cache -fv
And you're good to go.

Hope this helps some.

Last edited by tronayne; 06-25-2013 at 11:51 AM.
 
2 members found this post helpful.
Old 06-25-2013, 11:44 PM   #3
manoj.linux
Member
 
Registered: Aug 2007
Posts: 231

Original Poster
Rep: Reputation: 15
Many Many Thanks.
 
  


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
[SOLVED] Install new font crfr33r1d3r Linux - Desktop 2 11-26-2012 05:03 PM
How to install a font? concoran Linux - Newbie 1 06-12-2008 05:23 AM
How to install Font Server in FedoraCore2--my font server failed covaigold Fedora 0 02-21-2005 01:42 AM
How to install a new font ? dileepkk Linux - Software 1 07-10-2004 05:45 AM
how do i install font? paschim Linux - Newbie 1 06-25-2004 01:38 AM


All times are GMT -5. The time now is 06:23 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration