<?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>Kev009.com &#187; x11</title>
	<atom:link href="http://www.kev009.com/wp/tag/x11/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kev009.com/wp</link>
	<description>Speed and Accuracy are fine, kev009 is final: Projects and Ventures of Kevin Bowling</description>
	<lastBuildDate>Thu, 19 Jan 2012 03:18:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Getting Beautiful Fonts in Gentoo Linux</title>
		<link>http://www.kev009.com/wp/2009/12/getting-beautiful-fonts-in-gentoo-linux/</link>
		<comments>http://www.kev009.com/wp/2009/12/getting-beautiful-fonts-in-gentoo-linux/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 08:29:27 +0000</pubDate>
		<dc:creator>kev009</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[kde]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[fontconfig]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[subpixel hinting]]></category>
		<category><![CDATA[x11]]></category>
		<category><![CDATA[xorg]]></category>

		<guid isPermaLink="false">http://www.kev009.com/wp/?p=399</guid>
		<description><![CDATA[Here&#8217;s my easy and modern guide to getting pleasant looking fonts on Gentoo with minimal effort. USE Flags Enable the following USE flags: euse --enable truetype type1 cleartype corefonts and make sure everything is built with them enabled: emerge -uDNa &#8230; <a href="http://www.kev009.com/wp/2009/12/getting-beautiful-fonts-in-gentoo-linux/">Continue reading <span class="meta-nav">&#8594;</span></a>
No related posts.]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s my easy and modern guide to getting pleasant looking fonts on Gentoo with minimal effort.</p>
<div id="attachment_403" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.kev009.com/wp/wp-content/uploads/2009/12/wikipedia-fonts.png"><img class="size-medium wp-image-403" title="wikipedia-fonts" src="http://www.kev009.com/wp/wp-content/uploads/2009/12/wikipedia-fonts-300x298.png" alt="Wikipedia rendered with the end result of this guide" width="300" height="298" /></a><p class="wp-caption-text">Wikipedia rendered with the end result of this guide</p></div>
<h3>USE Flags</h3>
<p>Enable the following USE flags:</p>
<pre>euse --enable truetype type1 cleartype corefonts</pre>
<p>and make sure everything is built with them enabled:</p>
<pre>emerge -uDNa world</pre>
<h3>Emerge Fonts</h3>
<p>X.org and other apps should pull in some common fonts.  Here are some additional fonts useful for OpenOffice and other programs.  Dejavu provides excellent default fonts which we will enable in the next section.</p>
<pre>app-admin/eselect-fontconfig
media-fonts/corefonts
media-fonts/dejavu
media-fonts/font-bh-ttf
media-fonts/font-bh-type1
media-fonts/freefonts
media-fonts/ttf-bitstream-vera
media-fonts/unifont
media-fonts/artwiz-aleczapka-en</pre>
<h3>Enabling fontconfig options</h3>
<p>Use &#8216;<strong>eselect fontconfig list</strong>&#8216; to see a list of available configuration options.</p>
<div id="attachment_402" class="wp-caption aligncenter" style="width: 308px"><a href="http://www.kev009.com/wp/wp-content/uploads/2009/12/eselect-fontconfig.png"><img class="size-medium wp-image-402" title="eselect-fontconfig" src="http://www.kev009.com/wp/wp-content/uploads/2009/12/eselect-fontconfig-298x300.png" alt="eselect fontconfig list" width="298" height="300" /></a><p class="wp-caption-text">eselect fontconfig list</p></div>
<p>Try enabling the following with &#8216;<strong>eselect fontconfig enable</strong> &lt;num from list above&gt;&#8217;:</p>
<pre>10-autohint.conf
10-sub-pixel-rgb.conf
20-unhint-small-dejavu-sans-mono.conf
20-unhint-small-dejavu-sans.conf
20-unhint-small-dejavu-serif.conf
25-unhint-nonlatin.conf
57-dejavu-sans-mono.conf
57-dejavu-sans.conf
57-dejavu-serif.conf</pre>
<p>This will give you very nice hinted fonts suitable for the great majority of RGB LCD displays.</p>
<p>The <em>57-</em> series rules enable dejavu fonts as the default Serif and Sans Serif fonts.  This will improve the look of your desktop environment and programs like Firefox immediately.</p>
<h3>~/.fonts.conf</h3>
<p>This file controls your user fontconfig settings.  We will reiterate RGB hinting and disable it for bold fonts so they are not overly bold.  There are plenty of other tricks you can perform in this file to get more Windows-like text, but I&#8217;m quite satisfied with the following and find it very easy to read.</p>
<pre>&lt;?xml version='1.0'?&gt;
&lt;!DOCTYPE fontconfig SYSTEM 'fonts.dtd'&gt;
&lt;fontconfig&gt;
 &lt;match target="font"&gt;
 &lt;edit mode="assign" name="rgba"&gt;
 &lt;const&gt;rgb&lt;/const&gt;
 &lt;/edit&gt;
 &lt;/match&gt;
 &lt;match target="font"&gt;
 &lt;edit mode="assign" name="hinting"&gt;
 &lt;bool&gt;true&lt;/bool&gt;
 &lt;/edit&gt;
 &lt;/match&gt;
 &lt;match target="font"&gt;
 &lt;edit mode="assign" name="hintstyle"&gt;
 &lt;const&gt;hintfull&lt;/const&gt;
 &lt;/edit&gt;
 &lt;/match&gt;
 &lt;match target="font"&gt;
 &lt;edit mode="assign" name="antialias"&gt;
 &lt;bool&gt;true&lt;/bool&gt;
 &lt;/edit&gt;
 &lt;/match&gt;
 &lt;!-- Disable autohint for bold fonts so they are not overly bold --&gt;
 &lt;match target="font" &gt;
 &lt;test compare="more" name="weight" &gt;
 &lt;const&gt;medium&lt;/const&gt;
 &lt;/test&gt;
 &lt;edit mode="assign" name="autohint" &gt;
 &lt;bool&gt;false&lt;/bool&gt;
 &lt;/edit&gt;
 &lt;/match&gt;
&lt;/fontconfig&gt;</pre>
<h3>Conclusion</h3>
<p>Please share any thoughts and tips in the comments.  I recommend browsing the <a href="http://en.gentoo-wiki.com/wiki/X.Org/Fonts" target="_blank">X.org Font Guide</a> on Gentoo Wiki, though some of the information there is out of date or more complex than the method I just outlined.</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.kev009.com/wp/2009/12/getting-beautiful-fonts-in-gentoo-linux/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
	</channel>
</rss>

