<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gHacks technology news &#187; mkfontdir</title>
	<atom:link href="http://www.ghacks.net/tag/mkfontdir/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ghacks.net</link>
	<description>A technology blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description>
	<lastBuildDate>Tue, 24 Nov 2009 03:24:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing Fonts in Linux</title>
		<link>http://www.ghacks.net/2009/01/09/installing-fonts-in-linux/</link>
		<comments>http://www.ghacks.net/2009/01/09/installing-fonts-in-linux/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 19:12:37 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Knowledge]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[installing fonts in linux]]></category>
		<category><![CDATA[linux fonts]]></category>
		<category><![CDATA[mkfontdir]]></category>
		<category><![CDATA[true type fonts in linux]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=9763</guid>
		<description><![CDATA[If you do much desktop publishing or graphics work in Linux than you might be at a place where you are struggling to get fonts installed. Well never fear &#8211; it&#8217;s not nearly as difficult as it sounds. In fact, installing fonts in Linux is quite easy. Of course the easiest means to installing fonts [...]]]></description>
			<content:encoded><![CDATA[<p>If you do much desktop publishing or graphics work in Linux than you might be at a place where you are struggling to get fonts installed. Well never fear &#8211; it&#8217;s not nearly as difficult as it sounds. In fact, installing fonts in Linux is quite easy. Of course the easiest means to installing fonts in Linux is with the command line. In this article you are going to learn how to install true type fonts both per user and globally.</p>
<p>Naturally one of the issues with fonts is where to get them. If you do a search for &#8220;free fonts&#8221; you will come up with plenty of sites that offer fonts. There are even sites that sell fonts for a reasonable price. Of course if you are serious about desktop publishing or graphics you will want to look at higher quality fonts. On with the installation.</p>
<p><span id="more-9763"></span><strong>Per User Installation</strong></p>
<p>By far the easiest installation is the per user installation. What this type of install does is install the fonts in such a way that only the targeted use has access to the fonts. For this type of installation download all of your fonts into a directory the user has access to (the ~/Downloads directory works fine.) Once you have your fonts collected (You will most likely have to unzip each file which will result in either .ttf or .TTF files) do the following (all in a terminal window) within the directory containing your downloaded fonts.</p>
<p>mkdir ~/.fonts</p>
<p>mv *ttf *TTF ~/.fonts</p>
<p>Now log out of your desktop environment and log back in. Those fonts should now be available to you. If you&#8217;re unsure you can fire up either OpenOffice or The GIMP to see if your fonts are available. They should be.</p>
<p><strong>Global Installation</strong></p>
<p>Installing fonts globally allows all users access to the fonts. This is not as simple as installing per-user but it is still simple. You sill have to download all of your fonts. Once you have them downloaded unzip the files (making sure all the *ttf and *TTF files are in the same directory) and su to the root user. Once you are the root user issue the following commands:</p>
<ul>
<li>mkdir   -p /usr/local/share/fonts/ttfonts</li>
<li>mv *ttf *TTF /usr/local/share/fonts/ttfonts</li>
<li>cd   /usr/local/share/fonts/ttfonts</li>
<li>ttmkfdir   -o fonts.scale</li>
<li>mkfontdir</li>
<li>chkfontpath   &#8211;add /usr/local/share/fonts/ttfonts</li>
<li>/etc/rc.d/init.d/xfs   restart</li>
</ul>
<p>Now log out of your desktop and you can log in as any user and the fonts will be available to them.</p>
<p><strong>Final Thoughts</strong></p>
<p>See, installing fonts in Linux isn&#8217;t difficult &#8211; especially when installing on a per user basis. For most people the first method will suffice. Unless you work on a machine that is used by more than one user, you will only need the per user method. Of course if the global installation method is a bit daunting you can always copy the fonts into the <em>~/.fonts</em> directory of every user that needs access to the various true type fonts.</p>

	Tags: <a href="http://www.ghacks.net/tag/installing-fonts-in-linux/" title="installing fonts in linux" rel="tag">installing fonts in linux</a>, <a href="http://www.ghacks.net/tag/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://www.ghacks.net/tag/linux-fonts/" title="linux fonts" rel="tag">linux fonts</a>, <a href="http://www.ghacks.net/tag/mkfontdir/" title="mkfontdir" rel="tag">mkfontdir</a>, <a href="http://www.ghacks.net/tag/true-type-fonts-in-linux/" title="true type fonts in linux" rel="tag">true type fonts in linux</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2008/02/07/yoggie-pico-personal-mobile-security-computer/" title="Yoggie PICO Personal Mobile Security Computer (February 7, 2008)">Yoggie PICO Personal Mobile Security Computer</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/10/30/with-ubuntu-9-10-arrives-wubi-9-10/" title="With Ubuntu 9.10 Arrives Wubi 9.10 (October 30, 2009)">With Ubuntu 9.10 Arrives Wubi 9.10</a> (2)</li>
	<li><a href="http://www.ghacks.net/2006/12/07/widgets-for-linux-superkaramba/" title="Widgets for Linux: SuperKaramba (December 7, 2006)">Widgets for Linux: SuperKaramba</a> (6)</li>
	<li><a href="http://www.ghacks.net/2006/12/06/widgets-for-linux-gdesklets/" title="Widgets for Linux: gDesklets (December 6, 2006)">Widgets for Linux: gDesklets</a> (3)</li>
	<li><a href="http://www.ghacks.net/2006/12/20/why-you-should-switch-your-parents-pc-to-ubuntu/" title="Why you should switch your parents pc to ubuntu (December 20, 2006)">Why you should switch your parents pc to ubuntu</a> (20)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/01/09/installing-fonts-in-linux/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
