LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-24-2013, 11:09 PM   #1
manoj.linux
Member
 
Registered: Aug 2007
Posts: 284

Rep: Reputation: 17
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, 10: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,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
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 10:51 AM.
 
2 members found this post helpful.
Old 06-25-2013, 10:44 PM   #3
manoj.linux
Member
 
Registered: Aug 2007
Posts: 284

Original Poster
Rep: Reputation: 17
Many Many Thanks.
 
  


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

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 10:13 AM.

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