/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to Administration/Linux/locale/xorg/HOWTO_Xorg_and_Fonts.html

  • Committer: Suren A. Chilingaryan
  • Date: 2009-04-09 03:21:08 UTC
  • Revision ID: csa@dside.dyndns.org-20090409032108-w4edamdh4adrgdu3
import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
2
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr" lang="en"><head>
 
3
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 
4
    <meta name="KEYWORDS" content="HOWTO Xorg and Fonts">
 
5
<meta name="robots" content="index,follow">
 
6
<link rel="shortcut icon" href="http://gentoo-wiki.com/favicon.ico"><title>HOWTO Xorg and Fonts - Gentoo Linux Wiki</title>
 
7
    
 
8
    <style type="text/css" media="screen,projection">/*<![CDATA[*/ @import "/skins/monobook/main.css"; /*]]>*/</style>
 
9
    <link rel="stylesheet" type="text/css" media="print" href="HOWTO_Xorg_and_Fonts_files/commonPrint.css"><!--[if lt IE 5.5000]><style type="text/css">@import "/skins/monobook/IE50Fixes.css";</style><![endif]--><!--[if IE 5.5000]><style type="text/css">@import "/skins/monobook/IE55Fixes.css";</style><![endif]--><!--[if gte IE 6]><style type="text/css">@import "/skins/monobook/IE60Fixes.css";</style><![endif]--><!--[if IE]><script type="text/javascript" src="/skins/common/IEFixes.js"></script>
 
10
    <meta http-equiv="imagetoolbar" content="no" /><![endif]-->
 
11
    
 
12
    
 
13
    
 
14
    
 
15
    <script type="text/javascript" src="HOWTO_Xorg_and_Fonts_files/index"></script>    <script type="text/javascript" src="HOWTO_Xorg_and_Fonts_files/wikibits"></script>
 
16
    <style type="text/css">/*<![CDATA[*/
 
17
@import "/index.php?title=MediaWiki:Monobook.css&action=raw&ctype=text/css&smaxage=18000";
 
18
@import "/index.php?title=-&action=raw&gen=css&maxage=18000";
 
19
/*]]>*/</style>                <script src="HOWTO_Xorg_and_Fonts_files/a" type="text/javascript"></script></head>
 
20
 
 
21
  <body class="ns-0"><img src="HOWTO_Xorg_and_Fonts_files/a_002" alt="" style="position: absolute; left: -9999px;" onload="this.parentNode.removeChild(this);">
 
22
  
 
23
    <div id="globalWrapper">
 
24
      <div id="column-content">
 
25
        <div id="content">
 
26
          <a name="top" id="contentTop"></a>
 
27
                  <h1 class="firstHeading">HOWTO Xorg and Fonts</h1>
 
28
<div id="p-nav-ad" style="text-align: center;"><script type="text/javascript"><!--
 
29
google_ad_client = "pub-3996301520685260";
 
30
google_ad_width = 728;
 
31
google_ad_height = 90;
 
32
google_ad_format = "728x90_as";
 
33
google_ad_type = "text_image";
 
34
google_color_border = "336699";
 
35
google_color_bg = "FFFFFF";
 
36
google_color_link = "0000FF";
 
37
google_color_url = "008000";
 
38
google_color_text = "000000";
 
39
//--></script>
 
40
<script type="text/javascript" src="HOWTO_Xorg_and_Fonts_files/show_ads">   
 
41
</script><iframe name="google_ads_frame" src="HOWTO_Xorg_and_Fonts_files/ads." marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" frameborder="0" height="90" scrolling="no" width="728">&lt;img&gt;</iframe></div>
 
42
          <div id="bodyContent">
 
43
            <h3 id="siteSub">From Gentoo Linux Wiki</h3>
 
44
            <div id="contentSub"></div>
 
45
                            <!-- start content -->
 
46
            <table style="border: 1px solid rgb(170, 170, 170); padding: 0.5em 0pt; background: rgb(245, 245, 245) none repeat scroll 0%; position: relative; text-align: center; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; font-family: sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 85%; line-height: normal; font-size-adjust: none; font-stretch: normal; width: 100%;" cellpadding="0" cellspacing="0">
 
47
<tbody><tr>
 
48
<td> &nbsp;
 
49
</td><td style="width: 90px;"><a href="http://gentoo-wiki.com/Index:XOrg" title="Index:XOrg">XOrg Index</a>
 
50
</td><td style="width: 90px;"><a href="http://gentoo-wiki.com/Index:XOrg#Configuration" title="Index:XOrg">Configuration</a>
 
51
</td><td style="width: 90px;"><a href="http://gentoo-wiki.com/Index:XOrg#HIDevices" title="Index:XOrg">HIDevices</a>
 
52
</td><td style="width: 200px;"> <div style="margin: -45px 0pt 0pt -50px; position: absolute; left: 50%;"><a href="http://gentoo-wiki.com/Image:Xorg_logo3.png" class="image" title=""><img src="HOWTO_Xorg_and_Fonts_files/100px-Xorg_logo3" alt="" longdesc="/Image:Xorg_logo3.png" height="80" width="100"></a></div>
 
53
</td><td style="width: 90px;"><a href="http://gentoo-wiki.com/Index:XOrg#Fonts" title="Index:XOrg">Fonts</a>
 
54
</td><td style="width: 90px;"><a href="http://gentoo-wiki.com/Index:XOrg#Video_Cards" title="Index:XOrg">Video Cards</a>
 
55
</td><td style="width: 90px;"><a href="http://gentoo-wiki.com/Index:XOrg#Monitors" title="Index:XOrg">Monitors</a>
 
56
</td><td> &nbsp;
 
57
</td></tr></tbody></table>
 
58
<p><a href="http://gentoo-wiki.com/Image:Xorg_fonts.png" class="image" title="Image:Xorg_fonts.png"><img src="HOWTO_Xorg_and_Fonts_files/Xorg_fonts" alt="Image:Xorg_fonts.png" longdesc="/Image:Xorg_fonts.png" height="92" width="359"></a>
 
59
</p><p>Please help to update this HOWTO.
 
60
</p>
 
61
<table id="toc" class="toc"><tbody><tr><td><div id="toctitle"><h2>Contents</h2> <span class="toctoggle">[<a href="javascript:toggleToc()" class="internal" id="togglelink">hide</a>]</span></div>
 
62
<ul>
 
63
<li class="toclevel-1"><a href="#Why"><span class="tocnumber">1</span> <span class="toctext">Why</span></a></li>
 
64
<li class="toclevel-1"><a href="#Emerging_the_necessary_packages"><span class="tocnumber">2</span> <span class="toctext">Emerging the necessary packages</span></a></li>
 
65
<li class="toclevel-1"><a href="#Modify_config_files"><span class="tocnumber">3</span> <span class="toctext">Modify config files</span></a>
 
66
<ul>
 
67
<li class="toclevel-2"><a href="#.2Fetc.2Ffonts.2Flocal.conf"><span class="tocnumber">3.1</span> <span class="toctext">/etc/fonts/local.conf</span></a></li>
 
68
<li class="toclevel-2"><a href="#.2Fetc.2FX11.2Fxorg.conf"><span class="tocnumber">3.2</span> <span class="toctext">/etc/X11/xorg.conf</span></a></li>
 
69
<li class="toclevel-2"><a href="#.7E.2F.fonts.conf"><span class="tocnumber">3.3</span> <span class="toctext">~/.fonts.conf</span></a></li>
 
70
</ul>
 
71
</li>
 
72
<li class="toclevel-1"><a href="#Services_restart"><span class="tocnumber">4</span> <span class="toctext">Services restart</span></a></li>
 
73
<li class="toclevel-1"><a href="#Mozilla_Firefox_and_Thunderbird"><span class="tocnumber">5</span> <span class="toctext">Mozilla Firefox and Thunderbird</span></a>
 
74
<ul>
 
75
<li class="toclevel-2"><a href="#Mozilla_Firefox_1.0.2B"><span class="tocnumber">5.1</span> <span class="toctext">Mozilla Firefox 1.0+</span></a></li>
 
76
<li class="toclevel-2"><a href="#Mozilla_Thunderbird_0.7.2C_1.0.2.2C_and_later"><span class="tocnumber">5.2</span> <span class="toctext">Mozilla Thunderbird 0.7, 1.0.2, and later</span></a></li>
 
77
</ul>
 
78
</li>
 
79
<li class="toclevel-1"><a href="#Size_problems"><span class="tocnumber">6</span> <span class="toctext">Size problems</span></a></li>
 
80
<li class="toclevel-1"><a href="#What_to_do_if_the_Linux_font_in_Konsole_doesn.27t_work"><span class="tocnumber">7</span> <span class="toctext">What to do if the Linux font in Konsole doesn't work</span></a></li>
 
81
<li class="toclevel-1"><a href="#What_if_your_fonts_become_blurry_and_unreadable"><span class="tocnumber">8</span> <span class="toctext">What if your fonts become blurry and unreadable</span></a></li>
 
82
<li class="toclevel-1"><a href="#Useful_topics"><span class="tocnumber">9</span> <span class="toctext">Useful topics</span></a></li>
 
83
<li class="toclevel-1"><a href="#Thanks"><span class="tocnumber">10</span> <span class="toctext">Thanks</span></a></li>
 
84
<li class="toclevel-1"><a href="#See_also"><span class="tocnumber">11</span> <span class="toctext">See also</span></a></li>
 
85
</ul>
 
86
</td></tr></tbody></table>
 
87
<p><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
 
88
</p>
 
89
<div class="editsection" style="float: right; margin-left: 5px;">[<a href="http://gentoo-wiki.com/index.php?title=HOWTO_Xorg_and_Fonts&amp;action=edit&amp;section=1" title="HOWTO Xorg and Fonts">edit</a>]</div><a name="Why"></a><h2> Why </h2>
 
90
<p>After changing the X server from XFree to X.org, many people
 
91
(including myself) took issue with the font rendering and antialiasing,
 
92
especially those of us with LCD flat panels. This HOWTO makes fonts
 
93
much, much more readable.
 
94
</p>
 
95
<div class="editsection" style="float: right; margin-left: 5px;">[<a href="http://gentoo-wiki.com/index.php?title=HOWTO_Xorg_and_Fonts&amp;action=edit&amp;section=2" title="HOWTO Xorg and Fonts">edit</a>]</div><a name="Emerging_the_necessary_packages"></a><h2> Emerging the necessary packages </h2>
 
96
<p>I assume that you have X.org installed correctly (X.org must be emerged with the <strong><font color="maroon">bitmap-fonts</font></strong> USE flag in 6.8.0-r3 or <strong><font color="maroon">bitmap-fonts</font></strong>, <strong><font color="maroon">truetype-fonts</font></strong>, and <strong><font color="maroon">type1-fonts</font></strong>
 
97
flags in 6.8.0-r4 and later). This also assumes you're not running an
 
98
X-Server for multiple clients and therefore have the font-server USE
 
99
flag disabled, although it can still apply otherwise.
 
100
</p><p>These are the necessary packages:
 
101
</p>
 
102
<ul><li><a href="http://gentoo-portage.com/wiki.php?s=x11-base/xorg-x11" class="extiw" title="Ebuild:x11-base/xorg-x11">x11-base/xorg-x11</a>
 
103
</li><li><a href="http://gentoo-portage.com/wiki.php?s=media-libs/freetype" class="extiw" title="Ebuild:media-libs/freetype">media-libs/freetype</a>
 
104
</li><li><a href="http://gentoo-portage.com/wiki.php?s=media-fonts/corefonts" class="extiw" title="Ebuild:media-fonts/corefonts">media-fonts/corefonts</a>
 
105
</li><li><a href="http://gentoo-portage.com/wiki.php?s=media-fonts/freefonts" class="extiw" title="Ebuild:media-fonts/freefonts">media-fonts/freefonts</a>
 
106
</li></ul>
 
107
<p>However I advise you to also install these useful fonts:
 
108
</p>
 
109
<ul><li><a href="http://gentoo-portage.com/wiki.php?s=media-fonts/ttf-bitstream-vera" class="extiw" title="Ebuild:media-fonts/ttf-bitstream-vera">media-fonts/ttf-bitstream-vera</a>
 
110
</li><li><a href="http://gentoo-portage.com/wiki.php?s=media-fonts/artwiz-fonts" class="extiw" title="Ebuild:media-fonts/artwiz-fonts">media-fonts/artwiz-fonts</a>
 
111
</li><li><a href="http://gentoo-portage.com/wiki.php?s=media-fonts/sharefonts" class="extiw" title="Ebuild:media-fonts/sharefonts">media-fonts/sharefonts</a>
 
112
</li><li><a href="http://gentoo-portage.com/wiki.php?s=media-fonts/terminus-font" class="extiw" title="Ebuild:media-fonts/terminus-font">media-fonts/terminus-font</a>
 
113
</li><li><a href="http://gentoo-portage.com/wiki.php?s=media-fonts/unifont" class="extiw" title="Ebuild:media-fonts/unifont">media-fonts/unifont</a>
 
114
</li><li><a href="http://gentoo-portage.com/wiki.php?s=media-fonts/dejavu" class="extiw" title="Ebuild:media-fonts/dejavu">media-fonts/dejavu</a>
 
115
</li></ul>
 
116
<p>Enable the use flags and emerge the packages:
 
117
</p>
 
118
<pre>euse --enable bitmap-fonts truetype-fonts type1-fonts
 
119
emerge --newuse --noreplace freetype corefonts freefonts artwiz-fonts sharefonts \
 
120
        terminus-font ttf-bitstream-vera unifont dejavu xorg-x11
 
121
</pre>
 
122
<div class="editsection" style="float: right; margin-left: 5px;">[<a href="http://gentoo-wiki.com/index.php?title=HOWTO_Xorg_and_Fonts&amp;action=edit&amp;section=3" title="HOWTO Xorg and Fonts">edit</a>]</div><a name="Modify_config_files"></a><h2> Modify config files </h2>
 
123
<p>When fonts are installed, you have to modify the config files in order to make the system
 
124
recognize them. These are the files you have to modify:
 
125
</p>
 
126
<ul><li>/etc/fonts/local.conf
 
127
</li><li>/etc/X11/xorg.conf
 
128
</li><li>~/.fonts.conf
 
129
</li></ul>
 
130
<p><br>
 
131
</p>
 
132
<div class="editsection" style="float: right; margin-left: 5px;">[<a href="http://gentoo-wiki.com/index.php?title=HOWTO_Xorg_and_Fonts&amp;action=edit&amp;section=4" title="HOWTO Xorg and Fonts">edit</a>]</div><a name=".2Fetc.2Ffonts.2Flocal.conf"></a><h3>/etc/fonts/local.conf</h3>
 
133
<p>An editable configuration file for the Xft font system. Changes to <font color="green">/etc/fonts/local.conf</font> are system wide. Note, however, that the user font configuration file <font color="green">~/.fonts</font>
 
134
takes precedence over system wide changes "in most cases." The only
 
135
option that cannot be overridden by user settings is the anti-aliasing
 
136
setting. In <font color="green">/etc/fonts/local.conf</font> it is not necessary to set all the font directories, unless you install fonts in non-standard places.  <font color="green">/etc/fonts/fonts.conf</font> includes <font color="green">/usr/share/fonts</font> and everything beneath that, as well as some other directories such as <font color="green">~/.fonts</font>
 
137
Otherwise, you don't really need anything in this file. In fact, it is
 
138
not necessary to have this file because Xorg will read your <font color="green">~/.fonts</font> file if you have one. Note that <font color="green">/etc/fonts/local.conf</font>
 
139
is an xml markup file that can be edited easier with a file editor that
 
140
supports xml syntax highlighting; such as gedit. Included in this
 
141
example are many options you may want to take advantage of. Your file
 
142
may look similar to the one below:
 
143
</p>
 
144
<table style="border: 1px solid rgb(255, 191, 191); background-color: rgb(255, 242, 242);" cellpadding="0" cellspacing="0" width="75%">
 
145
<tbody><tr>
 
146
<td style="border-bottom: 1px solid rgb(136, 136, 136); background-color: rgb(255, 175, 175);"> <font size="-1"><b>File:</b> /etc/fonts/local.conf</font>
 
147
</td></tr>
 
148
<tr>
 
149
<td>
 
150
<pre>&lt;?xml version="1.0"?&gt;
 
151
&lt;!DOCTYPE fontconfig SYSTEM "fonts.dtd"&gt;
 
152
&lt;!-- /etc/fonts/local.conf file to configure system font access --&gt;
 
153
 
 
154
&lt;fontconfig&gt; 
 
155
 
 
156
&lt;!-- Enable sub-pixel rendering --&gt;
 
157
 
 
158
&lt;!--
 
159
        &lt;match target="font"&gt;
 
160
                &lt;test qual="all" name="rgba"&gt;
 
161
                        &lt;const&gt;unknown&lt;/const&gt;
 
162
                &lt;/test&gt;
 
163
                &lt;edit name="rgba" mode="assign"&gt;&lt;const&gt;rgb&lt;/const&gt;&lt;/edit&gt;
 
164
        &lt;/match&gt;
 
165
--&gt;
 
166
 
 
167
 
 
168
&lt;!-- Use the Autohinter --&gt;
 
169
 
 
170
        &lt;match target="font"&gt;
 
171
        &lt;edit name="autohint" mode="assign"&gt;&lt;bool&gt;true&lt;/bool&gt;&lt;/edit&gt;
 
172
       &lt;/match&gt;
 
173
 
 
174
&lt;!-- Disable Autohinting for bold fonts --&gt;
 
175
 
 
176
        &lt;match target="font"&gt;
 
177
                &lt;test name="weight" compare="more"&gt;
 
178
                        &lt;const&gt;medium&lt;/const&gt;
 
179
                &lt;/test&gt;
 
180
                &lt;edit name="autohint" mode="assign"&gt;&lt;bool&gt;false&lt;/bool&gt;&lt;/edit&gt;
 
181
        &lt;/match&gt;
 
182
 
 
183
&lt;!-- Exclude/Include a range of fonts for Anti Aliasing --&gt;
 
184
 
 
185
&lt;!--
 
186
 
 
187
&lt;match target="font"&gt;
 
188
        &lt;test qual="any" name="size" compare="more"&gt;
 
189
                &lt;double&gt;9&lt;/double&gt;
 
190
        &lt;/test&gt;
 
191
        &lt;test qual="any" name="size" compare="less"&gt;
 
192
                &lt;double&gt;14&lt;/double&gt;
 
193
        &lt;/test&gt;
 
194
        &lt;edit name="antialias" mode="assign"&gt;
 
195
                &lt;bool&gt;true&lt;/bool&gt;
 
196
        &lt;/edit&gt;
 
197
&lt;/match&gt; 
 
198
 
 
199
--&gt;
 
200
 
 
201
 
 
202
&lt;!-- And/Or disable Anti Aliasing for a range on pixel-based size.
 
203
     Disabling this using both methods seems to fix Firefox. --&gt;
 
204
 
 
205
&lt;!--
 
206
 
 
207
&lt;match target="font"&gt;
 
208
        &lt;test compare="less" name="pixelsize" qual="any"&gt;
 
209
                &lt;double&gt;20&lt;/double&gt;
 
210
        &lt;/test&gt;
 
211
        &lt;edit mode="assign" name="antialias"&gt;
 
212
                &lt;bool&gt;false&lt;/bool&gt;
 
213
        &lt;/edit&gt;
 
214
&lt;/match&gt;
 
215
 
 
216
--&gt;
 
217
 
 
218
 
 
219
        &lt;dir&gt;/home/david/extrafonts&lt;/dir&gt;
 
220
 
 
221
&lt;/fontconfig&gt;
 
222
</pre>
 
223
</td></tr></tbody></table>
 
224
<p>Looking at the above file, the sub-pixel rendering option is
 
225
commented out because it is only useful for LCD panels. When enabled on
 
226
a CRT display it only causes Xorg to do more rendering work. Possible
 
227
values are <b>"none"</b>, <b>"rgb"</b>, <b>"bgr"</b>, <b>"vrgb"</b> and <b>"vbgr"</b> for the sub-pixel rendering type. The most common type of LCD panel is the <b>"rgb"</b> type.
 
228
</p><p>You will almost certainly want to use the Autohinter in any
 
229
case, and is defaulted on in the example configuration file. However,
 
230
when using autohinting you will also most likely want to disable
 
231
autohinting on bold fonts to prevent bold fonts from appearing too
 
232
wide. The example file defaults autohinting on bold fonts to be off.
 
233
</p><p>The second to the last option is also commented out because
 
234
some people prefer to exclude or include a set of font sizes from
 
235
getting anti-aliasing applied to them. It is a common tweak that makes
 
236
your fonts looks much more like the Windows® default fonts. When
 
237
disabling anti-aliasing make sure to also disable sub-pixel rendering
 
238
to achieve the best non anti-aliased fonts.
 
239
</p><p>Finally, the last option having to do with pixel-based font
 
240
sizes... Please read comment file until somebody properly comments
 
241
this... WIKIFY!
 
242
</p><p>The last line is an example of user fonts in a different directory than the default <font color="green">/usr/share/fonts/</font>. You do not need this line and probably can delete it.
 
243
</p><p>Remember that all changes to this file are system wide and will be overridden by <font color="green">~/.fonts</font>, except for the anti-aliasing setting which will be forced on if set here. Also note that the syntax of <font color="green">/etc/fonts/local.conf</font> is exactly the same as the local user font configuration file <font color="green">~/.fonts</font> and therefore you may copy one file and rename it as another.
 
244
</p>
 
245
<div class="editsection" style="float: right; margin-left: 5px;">[<a href="http://gentoo-wiki.com/index.php?title=HOWTO_Xorg_and_Fonts&amp;action=edit&amp;section=5" title="HOWTO Xorg and Fonts">edit</a>]</div><a name=".2Fetc.2FX11.2Fxorg.conf"></a><h3>/etc/X11/xorg.conf</h3>
 
246
<p>When configuring X it is important to make sure that it has the
 
247
correct understanding of the size of your screen, make also sure that
 
248
youre running lcds at their native resolution, which is used to
 
249
calculate the horizontal and vertical pitch (DPI) of the screen - fonts
 
250
in GTK+ apps seem to get especially uglified by bad screen info.
 
251
Setting the width and height of the screen (in millimeters) using the
 
252
following directive: <b>DisplaySize &lt;width&gt; &lt;height&gt;</b> in the Monitor section of <font color="green">/etc/X11/xorg.conf</font> solves this.
 
253
</p>
 
254
<table style="border: 1px solid rgb(255, 191, 191); background-color: rgb(255, 242, 242);" cellpadding="0" cellspacing="0" width="75%">
 
255
<tbody><tr>
 
256
<td style="border-bottom: 1px solid rgb(136, 136, 136); background-color: rgb(255, 175, 175);"> <font size="-1"><b>File:</b> /etc/X11/xorg.conf</font>
 
257
</td></tr>
 
258
<tr>
 
259
<td>
 
260
<pre>Section "Monitor"
 
261
    Identifier          "Monitor0"
 
262
   &nbsp;:
 
263
    DisplaySize         340 270
 
264
   &nbsp;:
 
265
EndSection
 
266
</pre>
 
267
</td></tr></tbody></table>
 
268
<p>The values for DisplaySize can be calculated with the formula 25.4 *
 
269
width / dpi or respectively 25.4 * height / dpi, 25.4mm being 1 inch.
 
270
E.g. to use a dpi of 75 with a resolution of 1600x1200, the calculation
 
271
would be 25.4 * 1600 / 75 = 542 and 25.4 * 1200 / 75 = 406, resulting
 
272
in the setting DisplaySize 542 406.
 
273
</p><p>Another way to get the values is to ask X server to calculate it for you. 
 
274
Run it using "<b>startx -- -dpi 96</b>" command, where <b>96</b> is required value for dpi and check the dimension:
 
275
</p>
 
276
<pre> xdpyinfo | grep dimension
 
277
 dimensions:    1400x1050 pixels (<b>XXX</b>x<b>YYY</b> millimeters)
 
278
</pre>
 
279
<p>Use these XXX and YYY values for DisplaySize parameter.
 
280
</p><p>i810 notebook users(samsung x20):
 
281
Use 855resolution to get 1400x1050, most probably x wont start or the
 
282
driver will use the next lower resolution if youre just setting the
 
283
xorg.conf to 1400x1050 without using the tool. Which looks like the
 
284
font is blurred on every second line while reading this at tiny font
 
285
sizes, couldn't see a difference @16+.
 
286
Please add if this is also true for chips on normal motherboards.
 
287
</p><p>IF you are using nvidia's Drivers, a better way to do this
 
288
would be to add this in your device section. This works alot better
 
289
with dual monitors also:
 
290
</p>
 
291
<table style="border: 1px solid rgb(255, 191, 191); background-color: rgb(255, 242, 242);" cellpadding="0" cellspacing="0" width="75%">
 
292
<tbody><tr>
 
293
<td style="border-bottom: 1px solid rgb(136, 136, 136); background-color: rgb(255, 175, 175);"> <font size="-1"><b>File:</b> /etc/X11/xorg.conf</font>
 
294
</td></tr>
 
295
<tr>
 
296
<td>
 
297
<pre>   ....
 
298
   Option   "UseEdidDpi"   "FALSE"
 
299
   Option   "DPI"   "96 x 96"
 
300
   ....
 
301
</pre>
 
302
</td></tr></tbody></table>
 
303
<p>Next we have to list our font directories in <font color="green">/etc/X11/xorg.conf</font>.  The font paths are searched in the order they are listed, so before we're done we'll tweak that order a bit.
 
304
</p><p>Reasonably modern applications and DE's such as Gnome and KDE
 
305
use fontconfig so the only fonts that are actually required via the X
 
306
server (or font server) is <i>fixed</i> and <i>cursor</i>.
 
307
</p>
 
308
<pre>/usr/share/fonts/misc:unscaled
 
309
</pre>
 
310
<p>The first path we want on our list is /usr/share/fonts/misc.  This is where the all-important <i>fixed</i> and <i>cursor</i>
 
311
fonts are kept. These are crucial for the proper operation of Xorg.
 
312
This is where the default cursor is located, and putting it first in
 
313
the path keeps X from using the custom cursors that some font packages
 
314
install (artwiz).
 
315
</p><p>The&nbsp;:unscaled option tells X to use the unscaled versions
 
316
of these fonts whenever possible to prevent pixelation. This can apply
 
317
to any bitmap font.
 
318
</p>
 
319
<pre>/usr/share/fonts/75dpi:unscaled
 
320
/usr/share/fonts/100dpi:unscaled
 
321
</pre>
 
322
<p>These are the base bitmap fonts. We usually want 75dpi to be loaded
 
323
before 100dpi since a lot of themes expect it. Most modern monitors
 
324
will have a high dpi however, so if you find yourself squinting to read
 
325
menus, you might want to experiment switching the order. </p>
 
326
<pre>/usr/share/fonts/Type1
 
327
/usr/share/fonts/TTF
 
328
</pre>
 
329
<p>Type1 and Truetype fonts. The order shouldn't matter much, but might
 
330
be notable that both of these packages contain the Luxi Sans/Serif/Mono
 
331
fonts.
 
332
</p>
 
333
<pre>/usr/share/fonts/corefonts
 
334
/usr/share/fonts/freefont
 
335
/usr/share/fonts/sharefonts
 
336
</pre>
 
337
<p>these are the Microsoft's TrueType core fonts, a collection of
 
338
TrueType fonts and a collection of free Type1 Fonts, respectively.
 
339
</p>
 
340
<pre>/usr/share/fonts/artwiz
 
341
/usr/share/fonts/terminus
 
342
/usr/share/fonts/ttf-bitstream-vera
 
343
/usr/share/fonts/unifont
 
344
</pre>
 
345
<p>if you emerged the packages suggested above you should also have this list of fonts.
 
346
</p>
 
347
<pre>/usr/share/fonts/local
 
348
/usr/share/fonts/cyrillic
 
349
</pre>
 
350
<p>These are usually not needed, and are mostly empty or non-existent.
 
351
To be sure check the file fonts.dir inside each directory. If this file
 
352
contains a '0' the
 
353
directory does not need to be added to the font path.
 
354
</p>
 
355
<pre>/usr/share/fonts/*everythingelse*
 
356
</pre>
 
357
<p>All the directories of the new fonts you just emerged. The order
 
358
shouldn't matter as most of the fonts these packages provide are
 
359
unique. If you're worried about a particular font, place it higher up.
 
360
You can check a list of what fonts are provided in each directory's
 
361
fonts.dir file.
 
362
</p><p>Now to make a few final changes to the order. Take the base
 
363
bitmap fonts and put them last. This is because we now have much better
 
364
TTF or Type1 versions of some of these fonts we'd rather use. Also,
 
365
corefonts contains a lot of.. um.. core fonts and should be pretty high
 
366
on the list.
 
367
</p><p>The end result should look something like this:
 
368
</p>
 
369
<table style="border: 1px solid rgb(255, 191, 191); background-color: rgb(255, 242, 242);" cellpadding="0" cellspacing="0" width="75%">
 
370
<tbody><tr>
 
371
<td style="border-bottom: 1px solid rgb(136, 136, 136); background-color: rgb(255, 175, 175);"> <font size="-1"><b>File:</b> /etc/X11/xorg.conf</font>
 
372
</td></tr>
 
373
<tr>
 
374
<td>
 
375
<pre>&lt; cut &gt;
 
376
 
 
377
   FontPath    "/usr/share/fonts/misc:unscaled"
 
378
   FontPath    "/usr/share/fonts/Type1"
 
379
   FontPath    "/usr/share/fonts/TTF"
 
380
   FontPath    "/usr/share/fonts/corefonts"
 
381
   FontPath    "/usr/share/fonts/freefont"
 
382
   FontPath    "/usr/share/fonts/sharefonts"
 
383
   FontPath    "/usr/share/fonts/terminus"
 
384
   FontPath    "/usr/share/fonts/ttf-bitstream-vera"
 
385
   FontPath    "/usr/share/fonts/unifont"
 
386
   FontPath    "/usr/share/fonts/75dpi:unscaled"
 
387
   FontPath    "/usr/share/fonts/100dpi:unscaled"
 
388
   FontPath    "/usr/share/fonts/artwiz"
 
389
 
 
390
&lt; cut &gt;
 
391
</pre>
 
392
</td></tr></tbody></table>
 
393
<p><br>
 
394
(Credit for some of the above goes to the <a href="http://www.tldp.org/HOWTO/FDU/x-config.html" class="external text" title="http://www.tldp.org/HOWTO/FDU/x-config.html" rel="nofollow">XFree86 Font De-uglification HOWTO</a>)
 
395
</p><p>Also further down in the same file, please pay attention to the
 
396
line where the freetype module is loaded. It should be uncommented:
 
397
</p>
 
398
<table style="border: 1px solid rgb(255, 191, 191); background-color: rgb(255, 242, 242);" cellpadding="0" cellspacing="0" width="75%">
 
399
<tbody><tr>
 
400
<td style="border-bottom: 1px solid rgb(136, 136, 136); background-color: rgb(255, 175, 175);"> <font size="-1"><b>File:</b> /etc/X11/xorg.conf</font>
 
401
</td></tr>
 
402
<tr>
 
403
<td>
 
404
<pre>Load "freetype"
 
405
</pre>
 
406
</td></tr></tbody></table>
 
407
<div class="editsection" style="float: right; margin-left: 5px;">[<a href="http://gentoo-wiki.com/index.php?title=HOWTO_Xorg_and_Fonts&amp;action=edit&amp;section=6" title="HOWTO Xorg and Fonts">edit</a>]</div><a name=".7E.2F.fonts.conf"></a><h3>~/.fonts.conf</h3>
 
408
<p>The config file <font color="green">~/.fonts.conf</font> is a place
 
409
to put personal font preferences, it is not necessary for each user.
 
410
Options in this file will overwrite any system wide font configuration
 
411
made in <font color="green">/etc/fonts/local.conf</font>, except anti-aliasing cannot be turned off if previously set in the <font color="green">/etc/fonts/local.conf</font> file. Note that <font color="green">~/.fonts.conf</font>
 
412
is an xml markup file that can be edited easier with a file editor that
 
413
supports xml syntax highlighting; such as gedit. Included in this
 
414
example are many options you may want to take advantage of. Your file
 
415
may look similar to the one below:
 
416
</p>
 
417
<table style="border: 1px solid rgb(255, 191, 191); background-color: rgb(255, 242, 242);" cellpadding="0" cellspacing="0" width="75%">
 
418
<tbody><tr>
 
419
<td style="border-bottom: 1px solid rgb(136, 136, 136); background-color: rgb(255, 175, 175);"> <font size="-1"><b>File:</b> ~/.fonts.conf</font>
 
420
</td></tr>
 
421
<tr>
 
422
<td>
 
423
 <pre>&lt;?xml version="1.0"?&gt;
 
424
 &lt;!DOCTYPE fontconfig SYSTEM "fonts.dtd"&gt;
 
425
 &lt;!-- ~/.fonts.conf file to configure user font preferences --&gt;
 
426
 
 
427
&lt;fontconfig&gt; 
 
428
 
 
429
 &lt;!-- Enable sub-pixel rendering --&gt;
 
430
 
 
431
 &lt;!--
 
432
         &lt;match target="font"&gt;
 
433
                 &lt;test qual="all" name="rgba"&gt;
 
434
                         &lt;const&gt;unknown&lt;/const&gt;
 
435
                 &lt;/test&gt;
 
436
                 &lt;edit name="rgba" mode="assign"&gt;&lt;const&gt;rgb&lt;/const&gt;&lt;/edit&gt;
 
437
         &lt;/match&gt;
 
438
 --&gt;
 
439
 
 
440
  
 
441
 &lt;!-- Use the Autohinter --&gt;
 
442
 
 
443
        &lt;match target="font"&gt;
 
444
                &lt;edit name="autohint" mode="assign"&gt;&lt;bool&gt;true&lt;/bool&gt;&lt;/edit&gt;
 
445
        &lt;/match&gt;
 
446
 
 
447
 &lt;!-- Disable Autohinting for bold fonts --&gt;
 
448
 
 
449
        &lt;match target="font"&gt;
 
450
                &lt;test name="weight" compare="more"&gt;
 
451
                        &lt;const&gt;medium&lt;/const&gt;
 
452
                &lt;/test&gt;
 
453
                        &lt;edit name="autohint" mode="assign"&gt;&lt;bool&gt;false&lt;/bool&gt;&lt;/edit&gt;
 
454
        &lt;/match&gt;
 
455
  
 
456
 &lt;!-- Exclude/Include a range of fonts for Anti Aliasing --&gt;
 
457
 
 
458
 &lt;!--
 
459
 
 
460
 &lt;match target="font"&gt;
 
461
        &lt;test qual="any" name="size" compare="more"&gt;
 
462
                 &lt;double&gt;9&lt;/double&gt;
 
463
         &lt;/test&gt;
 
464
         &lt;test qual="any" name="size" compare="less"&gt;
 
465
                 &lt;double&gt;14&lt;/double&gt;
 
466
         &lt;/test&gt;
 
467
         &lt;edit name="antialias" mode="assign"&gt;
 
468
                 &lt;bool&gt;false&lt;/bool&gt;
 
469
         &lt;/edit&gt;
 
470
 &lt;/match&gt; 
 
471
 
 
472
 --&gt;
 
473
 
 
474
 &lt;/fontconfig&gt;
 
475
 </pre>
 
476
</td></tr></tbody></table>
 
477
<p>Looking at the above file, the sub-pixel rendering option is
 
478
commented out because it is only useful for LCD panels. When enabled on
 
479
a CRT display it only causes Xorg to do more rendering work. Possible
 
480
values are <b>"none"</b>, <b>"rgb"</b>, <b>"bgr"</b>, <b>"vrgb"</b> and <b>"vbgr"</b> for the sub-pixel rendering type. The most common type of LCD panel is the <b>"rgb"</b> type.
 
481
</p><p><br>
 
482
You will almost certainly want to use the Autohinter in any case, and
 
483
is defaulted on in the example configuration file. However, when using
 
484
autohinting you will also most likely want to disable autohinting on
 
485
bold fonts to prevent bold fonts from appearing too wide. The example
 
486
file defaults autohinting on bold fonts to be off.
 
487
</p><p><br>The last option is also commented out because some people
 
488
prefer to exclude or include a set of font sizes from getting
 
489
anti-aliasing applied to them. It is a common tweak that makes your
 
490
fonts looks much more like the Windows® default fonts. When disabling
 
491
anti-aliasing make sure to also disable sub-pixel rendering to achieve
 
492
the best non anti-aliased fonts. The example will disable anti-aliasing
 
493
on fonts sizes 9 through 14 if uncommented.
 
494
</p>
 
495
<div class="thumb tright"><div style="width: 182px;"><a href="http://gentoo-wiki.com/Image:Xorg-fonts-lcd.png" class="internal" title="Optimized for LCD"><img src="HOWTO_Xorg_and_Fonts_files/180px-Xorg-fonts-lcd" alt="Optimized for LCD" longdesc="/Image:Xorg-fonts-lcd.png" height="213" width="180"></a>  <div class="thumbcaption"><div class="magnify" style="float: right;"><a href="http://gentoo-wiki.com/Image:Xorg-fonts-lcd.png" class="internal" title="Enlarge"><img src="HOWTO_Xorg_and_Fonts_files/magnify-clip" alt="Enlarge" height="11" width="15"></a></div>Optimized for LCD</div></div></div>
 
496
<div class="thumb tright"><div style="width: 182px;"><a href="http://gentoo-wiki.com/Image:Xorg-fonts-windows.png" class="internal" title="Anti-Aliasing off - Like Windows®"><img src="HOWTO_Xorg_and_Fonts_files/180px-Xorg-fonts-windows" alt="Anti-Aliasing off - Like Windows®" longdesc="/Image:Xorg-fonts-windows.png" height="213" width="180"></a>  <div class="thumbcaption"><div class="magnify" style="float: right;"><a href="http://gentoo-wiki.com/Image:Xorg-fonts-windows.png" class="internal" title="Enlarge"><img src="HOWTO_Xorg_and_Fonts_files/magnify-clip" alt="Enlarge" height="11" width="15"></a></div>Anti-Aliasing off - Like Windows®</div></div></div>
 
497
<p><br>
 
498
</p><p>To the right are two screenshot examples of the <a href="http://forums.gentoo.org/" class="external free" title="http://forums.gentoo.org" rel="nofollow">http://forums.gentoo.org</a> webpage highlighting the different font configuration options.
 
499
</p>
 
500
<div class="editsection" style="float: right; margin-left: 5px;">[<a href="http://gentoo-wiki.com/index.php?title=HOWTO_Xorg_and_Fonts&amp;action=edit&amp;section=7" title="HOWTO Xorg and Fonts">edit</a>]</div><a name="Services_restart"></a><h2>Services restart</h2>
 
501
<p>After modifying config files, you have to restart <b>X.org</b>. If
 
502
you use a graphical greeter such as GDM, KDM, XDM, etc., you may be
 
503
able to simply log out of your session and restart X by pressing <b>Ctrl+Alt+Backspace</b> at the login screen.  If that doesn't do it, restarting X.org is possible by restarting the <b>xdm</b> service).
 
504
</p><p>Someone could notice a system freeze by launching the following
 
505
commands in X.org, so I advise to launch them in another terminal, that
 
506
is press <b>CTRL + ALT + F1</b> and log in.
 
507
(Pressing <b>ALT + F7</b> will return you to X from the console.)
 
508
</p>
 
509
<pre># /etc/init.d/xdm restart
 
510
</pre>
 
511
<p>Then your own graphical greeter should start and entering your system you should have antialiased fonts.
 
512
</p>
 
513
<div class="editsection" style="float: right; margin-left: 5px;">[<a href="http://gentoo-wiki.com/index.php?title=HOWTO_Xorg_and_Fonts&amp;action=edit&amp;section=8" title="HOWTO Xorg and Fonts">edit</a>]</div><a name="Mozilla_Firefox_and_Thunderbird"></a><h2>Mozilla Firefox and Thunderbird</h2>
 
514
<div class="editsection" style="float: right; margin-left: 5px;">[<a href="http://gentoo-wiki.com/index.php?title=HOWTO_Xorg_and_Fonts&amp;action=edit&amp;section=9" title="HOWTO Xorg and Fonts">edit</a>]</div><a name="Mozilla_Firefox_1.0.2B"></a><h3>Mozilla Firefox 1.0+</h3>
 
515
<p>In order to activate antialiased fonts in Firefox 1.0 make sure you
 
516
compile it with the moznoxft USE flag DISABLED. Run 'ufed' to disable
 
517
it (emerge ufed to install it).
 
518
</p><p>Thus:
 
519
</p>
 
520
<pre>emerge mozilla-firefox
 
521
</pre>
 
522
<p>Make sure you have started Firefox at least once, so that you have a profile in <b>~/.mozilla/firefox/default.xxx/</b>.
 
523
</p><p>Go to <b>about:config</b> in your browser, or alternatively, edit the <b>user.js</b> file in <font color="green">~/.mozilla/firefox/default.xxx/</font>, where xxx are letters or numbers.
 
524
</p><p>Firefox 1.0.4 keeps a <b>prefs.js</b> file in <font color="green">~/.mozilla/firefox/xxx.default/</font> where xxx is a string of numbers and letters.
 
525
</p><p>Throughout the about:config dialog, or in the <b>user.js</b> file you have to insert the following lines as shown below:
 
526
</p><p><i>Attention: Setting "font.FreeType2.printing" to true might cause Firefox to die when trying to print on cups.</i>
 
527
</p>
 
528
<table style="border: 1px solid rgb(255, 191, 191); background-color: rgb(255, 242, 242);" cellpadding="0" cellspacing="0" width="75%">
 
529
<tbody><tr>
 
530
<td style="border-bottom: 1px solid rgb(136, 136, 136); background-color: rgb(255, 175, 175);"> <font size="-1"><b>File:</b> ~/.mozilla/firefox/___.default/prefs.js</font>
 
531
</td></tr>
 
532
<tr>
 
533
<td>
 
534
<pre>// TrueType
 
535
user_pref ("font.FreeType2.enable", true);
 
536
user_pref ("font.freetype2.shared-library", "libfreetype.so.6");
 
537
// if libfreetype was built without hinting compiled in
 
538
// it is best to leave hinting off
 
539
user_pref ("font.FreeType2.autohinted", true);
 
540
user_pref ("font.FreeType2.unhinted", true);
 
541
// below a certain pixel size anti-aliased fonts produce poor results
 
542
user_pref ("font.antialias.min",        0);
 
543
user_pref ("font.embedded_bitmaps.max", 1000000);
 
544
// sample user_pref s for TrueType font dirs
 
545
user_pref ("font.directory.truetype.1", "/usr/share/fonts/ttf-bitstream-vera");
 
546
user_pref ("font.directory.truetype.2", "/usr/share/fonts/TTF");
 
547
user_pref ("font.directory.truetype.3", "/usr/share/fonts/corefonts");
 
548
user_pref ("font.directory.truetype.4", "/usr/share/fonts/freefont");
 
549
user_pref ("font.FreeType2.printing", true); 
 
550
</pre>
 
551
</td></tr></tbody></table>
 
552
<p>If you have followed this HOWTO you shouldn't have problem with the listed directories, otherwise you can change them.
 
553
</p><p>In Firefox 1.0, go to
 
554
<b>Edit</b> --&gt; <b>Preferences</b> --&gt; <b>General</b> --&gt; <b>Fonts &amp; Colors</b>.
 
555
</p><p>In Firefox 1.5, go to
 
556
<b>Edit</b> --&gt; <b>Preferences</b> --&gt; <b>Content</b> --&gt; <b>Fonts &amp; Colors</b> --&gt; <b>Advanced</b>.
 
557
</p><p>Then, set these parameters:
 
558
</p>
 
559
<pre>Proportional: Serif (Size: 16)
 
560
Serif: Bitstream vera serif
 
561
Sans-serif: Bitstream vera sans
 
562
Monospace: Bitstream vera sans mono (Size: 12)
 
563
</pre>
 
564
<p>You should also check that the following boxes are <b>not</b> ticked: <b>Always use my: Fonts</b>
 
565
</p><p>Then restart Firefox and browse <a href="http://www.gentoo.org/" class="external text" title="http://www.gentoo.org" rel="nofollow">www.gentoo.org</a> with antialiased fonts!
 
566
</p>
 
567
<div class="editsection" style="float: right; margin-left: 5px;">[<a href="http://gentoo-wiki.com/index.php?title=HOWTO_Xorg_and_Fonts&amp;action=edit&amp;section=10" title="HOWTO Xorg and Fonts">edit</a>]</div><a name="Mozilla_Thunderbird_0.7.2C_1.0.2.2C_and_later"></a><h3>Mozilla Thunderbird 0.7, 1.0.2, and later</h3>
 
568
<p>There are very few options in Thunderbird that relate to fonts, so all options must be applied to <b>user.js</b>.  Create this file in ~/.thunderbird/default/xxxxxxxx.slt/ (or, in newer versions, ~/.thunderbird/xxxxxxxx.default/).
 
569
In <b>user.js</b> you have to insert the same lines as were entered for Mozilla Firefox:
 
570
</p>
 
571
<table style="border: 1px solid rgb(255, 191, 191); background-color: rgb(255, 242, 242);" cellpadding="0" cellspacing="0" width="75%">
 
572
<tbody><tr>
 
573
<td style="border-bottom: 1px solid rgb(136, 136, 136); background-color: rgb(255, 175, 175);"> <font size="-1"><b>File:</b> ~/.thunderbird/default/xxxxxxxx.slt/user.js</font>
 
574
</td></tr>
 
575
<tr>
 
576
<td>
 
577
<pre>// TrueType
 
578
user_pref ("font.FreeType2.enable", true);
 
579
user_pref ("font.freetype2.shared-library", "libfreetype.so.6");
 
580
// if libfreetype was built without hinting compiled in
 
581
// it is best to leave hinting off
 
582
user_pref ("font.FreeType2.autohinted", true);
 
583
user_pref ("font.FreeType2.unhinted", true);
 
584
// below a certain pixel size anti-aliased fonts produce poor results
 
585
user_pref ("font.antialias.min",        0);
 
586
user_pref ("font.embedded_bitmaps.max", 1000000);
 
587
user_pref ("font.scale.tt_bitmap.dark_text.min", 0);
 
588
user_pref ("font.scale.tt_bitmap.dark_text.gain", "0.0");
 
589
// sample user_pref s for TrueType font dirs
 
590
user_pref ("font.directory.truetype.1", "/usr/share/fonts/ttf-bitstream-vera");
 
591
user_pref ("font.directory.truetype.2", "/usr/share/fonts/TTF");
 
592
user_pref ("font.directory.truetype.3", "/usr/share/fonts/corefonts");
 
593
user_pref ("font.directory.truetype.4", "/usr/share/fonts/freetype");
 
594
user_pref ("font.FreeType2.printing", true); 
 
595
</pre>
 
596
</td></tr></tbody></table>
 
597
<p>Then, with Thunderbird 1.0.2 opened, go to:
 
598
<b>Edit</b> ---&gt; <b>Preferences</b> ---&gt; <b>Fonts</b>    (<b>Tools</b> ---&gt; <b>Options</b> ---&gt; <b>Fonts</b>     ON 0.7)    
 
599
and set these parameters:
 
600
</p>
 
601
<pre>Proportional: Serif (Size: 16)
 
602
Serif: Bits-bitstream vera serif
 
603
Sans-serif: Bits-bitstream vera sans
 
604
Monospace: Bits-bitstream vera sans mono (Size: 12)
 
605
Minimum font size: 9
 
606
</pre>
 
607
<p>You should also check that the following boxes are ticked: <b>Allow messages to use other fonts</b>
 
608
</p><p>Then restart Thunderbird and read your mail with crisp, clean fonts!
 
609
</p>
 
610
<div class="editsection" style="float: right; margin-left: 5px;">[<a href="http://gentoo-wiki.com/index.php?title=HOWTO_Xorg_and_Fonts&amp;action=edit&amp;section=11" title="HOWTO Xorg and Fonts">edit</a>]</div><a name="Size_problems"></a><h2>Size problems</h2>
 
611
<p>If your kde apps the fonts are the wrong size but you don't have kde
 
612
installed (you can not change it from Control Center) you just have to
 
613
edit your ~/.kde/share/config/kdeglobals with something like
 
614
</p>
 
615
<table style="border: 1px solid rgb(255, 191, 191); background-color: rgb(255, 242, 242);" cellpadding="0" cellspacing="0" width="75%">
 
616
<tbody><tr>
 
617
<td style="border-bottom: 1px solid rgb(136, 136, 136); background-color: rgb(255, 175, 175);"> <font size="-1"><b>File:</b> ~/.kde/share/config/kdeglobals</font>
 
618
</td></tr>
 
619
<tr>
 
620
<td>
 
621
<pre>[General]
 
622
 StandardFont=Bitstream Vera Sans,7,-1,5,50,0,0,0,0,0
 
623
 activeFont=Bitstream Vera Sans,7,-1,5,75,0,0,0,0,0
 
624
 fixed=Bitstream Vera Sans Mono,7,-1,5,50,0,0,0,0,0
 
625
 font=Bitstream Vera Sans,7,-1,5,50,0,0,0,0,0
 
626
 menuFont=Bitstream Vera Sans,7,-1,5,50,0,0,0,0,0
 
627
 taskbarFont=Bitstream Vera Sans,7,-1,5,50,1,0,0,0,0
 
628
 toolBarFont=Bitstream Vera Sans,7,-1,5,50,0,0,0,0,0
 
629
</pre>
 
630
</td></tr></tbody></table>
 
631
<p>The number after the font name is the size. (I don't know what the other numbers are, just try)
 
632
</p><p>It happened that my firefox toolbar/menu fonts were enormous. To
 
633
solve just add to your
 
634
~/.mozilla/firefox/&lt;yourprofile&gt;/chrome/userChrome.css
 
635
</p>
 
636
<table style="border: 1px solid rgb(255, 191, 191); background-color: rgb(255, 242, 242);" cellpadding="0" cellspacing="0" width="75%">
 
637
<tbody><tr>
 
638
<td style="border-bottom: 1px solid rgb(136, 136, 136); background-color: rgb(255, 175, 175);"> <font size="-1"><b>File:</b> ~/.mozilla/firefox/&lt;yourprofile&gt;/chrome/userChrome.css</font>
 
639
</td></tr>
 
640
<tr>
 
641
<td>
 
642
<pre>* {
 
643
    font-family: Sans-Serif&nbsp;!important;
 
644
    font-size: 8pt&nbsp;!important;
 
645
}
 
646
</pre>
 
647
</td></tr></tbody></table> and do the same for Thunderbird (~/.thunderbird/&lt;profile&gt;/chrome/userChrome.css
 
648
<p>In my case, after making all those changes, the fonts for the input
 
649
fields (buttons, text entry, or drop-down menus) in some web pages like
 
650
Google or Amazon were way too big and still using one of the ugly
 
651
fonts. To change that, go to userContent.css (that's different from the
 
652
userChrome.css file we just modified), and add the following entry:
 
653
</p>
 
654
<table style="border: 1px solid rgb(255, 191, 191); background-color: rgb(255, 242, 242);" cellpadding="0" cellspacing="0" width="75%">
 
655
<tbody><tr>
 
656
<td style="border-bottom: 1px solid rgb(136, 136, 136); background-color: rgb(255, 175, 175);"> <font size="-1"><b>File:</b> ~/.mozilla/firefox/&lt;yourprofile&gt;/chrome/userContent.css</font>
 
657
</td></tr>
 
658
<tr>
 
659
<td>
 
660
<pre>input, textarea, select, button,
 
661
input[type="button"], input[type="reset"], input[type="submit"] {
 
662
   font-size: 8pt&nbsp;!important;
 
663
   font-family: Verdana&nbsp;!important;
 
664
}
 
665
</pre>
 
666
</td></tr></tbody></table>
 
667
<div class="editsection" style="float: right; margin-left: 5px;">[<a href="http://gentoo-wiki.com/index.php?title=HOWTO_Xorg_and_Fonts&amp;action=edit&amp;section=12" title="HOWTO Xorg and Fonts">edit</a>]</div><a name="What_to_do_if_the_Linux_font_in_Konsole_doesn.27t_work"></a><h2>What to do if the Linux font in Konsole doesn't work</h2>
 
668
<p>KDE users probably know the KDE X terminal konsole. But some users get the following error if they try to use the Linux font:
 
669
<i>Font `-misc-console-medium-r-normal--16-160-72-72-c-80-iso10646-1' not found.</i>
 
670
</p><p>You can solve this by executing the following steps:
 
671
</p>
 
672
<ol><li> Start <i>kdesu kcmshell kcmfontinst</i> when you are in kde.
 
673
</li><li> Give the root password.
 
674
</li><li> Click on the "add fonts" icon (a @-sign with a +-sign on it)
 
675
</li><li> Go to the dir "/usr/kde/3.2/share/fonts/" and add all fonts (files ending in .pcf.gz) available.
 
676
</li></ol>
 
677
<div class="editsection" style="float: right; margin-left: 5px;">[<a href="http://gentoo-wiki.com/index.php?title=HOWTO_Xorg_and_Fonts&amp;action=edit&amp;section=13" title="HOWTO Xorg and Fonts">edit</a>]</div><a name="What_if_your_fonts_become_blurry_and_unreadable"></a><h2>What if your fonts become blurry and unreadable</h2>
 
678
<p>For me, my fonts would occasionally <a href="http://i4.photobucket.com/albums/y106/bobpaul/blury_text.png" class="external text" title="http://i4.photobucket.com/albums/y106/bobpaul/blury text.png" rel="nofollow">become unreadable</a> in Gnome 2.12.
 
679
</p><p>Completely disabling AntiAliasing (comment out those sections in
 
680
/etc/local/fonts.conf and ~/.fonts.conf as they are in the examples
 
681
above) solves this problem.
 
682
</p>
 
683
<hr>
 
684
<p>I had the same problem, but I didn't find a fix for it.
 
685
</p><p>I did however find the source. It seems to be a bug in nVIDIA's kernel modules and GTK+.
 
686
(<a href="http://bugs.gentoo.org/show_bug.cgi?id=113123" class="external autonumber" title="http://bugs.gentoo.org/show bug.cgi?id=113123" rel="nofollow">[1]</a> Source)
 
687
</p><p><i>ps&nbsp;: plz correct my english ...just add this because i send i lot of time to find it&nbsp;;)</i>
 
688
Corrected&nbsp;:)
 
689
</p>
 
690
<div class="editsection" style="float: right; margin-left: 5px;">[<a href="http://gentoo-wiki.com/index.php?title=HOWTO_Xorg_and_Fonts&amp;action=edit&amp;section=14" title="HOWTO Xorg and Fonts">edit</a>]</div><a name="Useful_topics"></a><h2>Useful topics</h2>
 
691
<p>These are the topics from which I took informations in order to write this HOWTO:
 
692
</p>
 
693
<ul><li><a href="http://forums.gentoo.org/viewtopic.php?t=23575" class="external text" title="http://forums.gentoo.org/viewtopic.php?t=23575" rel="nofollow">How to enable AA in Fluxbox,GKrellM,Abiword,Phoenix etc...</a>
 
694
</li><li><a href="http://forums.gentoo.org/viewtopic.php?t=164507" class="external text" title="http://forums.gentoo.org/viewtopic.php?t=164507" rel="nofollow">X.Org &amp; Fonts</a>
 
695
</li><li><a href="http://forums.gentoo.org/viewtopic.php?t=101970" class="external text" title="http://forums.gentoo.org/viewtopic.php?t=101970" rel="nofollow">[xfree] caratteri sfocati</a>
 
696
</li><li><a href="http://forums.gentoo.org/viewtopic.php?t=183733" class="external text" title="http://forums.gentoo.org/viewtopic.php?t=183733" rel="nofollow">Moz Firefox 0.9 (all versions) general discussion thread.</a>
 
697
</li></ul>
 
698
<p><br>
 
699
</p>
 
700
<div class="editsection" style="float: right; margin-left: 5px;">[<a href="http://gentoo-wiki.com/index.php?title=HOWTO_Xorg_and_Fonts&amp;action=edit&amp;section=15" title="HOWTO Xorg and Fonts">edit</a>]</div><a name="Thanks"></a><h2>Thanks</h2>
 
701
<p>I want to thank the Gentoo Italian Community and the Gentoo Community, which make Gentoo so powerful and incredible.
 
702
A special thank to <a href="http://forums.gentoo.org/profile.php?mode=viewprofile&amp;u=20296" class="external text" title="http://forums.gentoo.org/profile.php?mode=viewprofile&amp;u=20296" rel="nofollow">BlueRaven</a> for his explanation about fonts in <a href="http://forums.gentoo.org/viewtopic.php?t=101970" class="external text" title="http://forums.gentoo.org/viewtopic.php?t=101970" rel="nofollow">[xfree] caratteri sfocati</a> and to <a href="http://forums.gentoo.org/profile.php?mode=viewprofile&amp;u=34466" class="external text" title="http://forums.gentoo.org/profile.php?mode=viewprofile&amp;u=34466" rel="nofollow">FonderiaDigitale</a> who led me to the final solution for my problem.
 
703
</p><p><br>
 
704
</p>
 
705
<div class="editsection" style="float: right; margin-left: 5px;">[<a href="http://gentoo-wiki.com/index.php?title=HOWTO_Xorg_and_Fonts&amp;action=edit&amp;section=16" title="HOWTO Xorg and Fonts">edit</a>]</div><a name="See_also"></a><h2>See also</h2>
 
706
<p><a href="http://process-of-elimination.net/wiki/Control_Font_DPI_in_X" class="external text" title="http://process-of-elimination.net/wiki/Control Font DPI in X" rel="nofollow">Control Font DPI in X</a><br>
 
707
<a href="http://forums.gentoo.org/viewtopic.php?t=187389" class="external text" title="http://forums.gentoo.org/viewtopic.php?t=187389" rel="nofollow">Forum Post</a><br>
 
708
<a href="http://www.tldp.org/HOWTO/FDU/index.html" class="external text" title="http://www.tldp.org/HOWTO/FDU/index.html" rel="nofollow">XFree86 Font De-uglification HOWTO</a><br>
 
709
<a href="http://www.tldp.org/HOWTO/Font-HOWTO/index.html" class="external text" title="http://www.tldp.org/HOWTO/Font-HOWTO/index.html" rel="nofollow">Optimal Use of Fonts on Linux</a><br>
 
710
<a href="http://convexhull.com/mandrake_fonts.html" class="external text" title="http://convexhull.com/mandrake fonts.html" rel="nofollow">Mini HOWTO: Getting Perfect Fonts on Mandrake 10.1</a><br>
 
711
</p>
 
712
<!-- Saved in parser cache with key wiki:pcache:idhash:1038-0!1!0!0!!en!2 and timestamp 20060107075957 -->
 
713
<div class="printfooter">
 
714
Retrieved from "<a href="http://gentoo-wiki.com/HOWTO_Xorg_and_Fonts">http://gentoo-wiki.com/HOWTO_Xorg_and_Fonts</a>"</div>
 
715
            <div id="catlinks"><p class="catlinks"><a href="http://gentoo-wiki.com/index.php?title=Special:Categories&amp;article=HOWTO_Xorg_and_Fonts" title="Special:Categories">Categories</a>: <a href="http://gentoo-wiki.com/Category:X" title="Category:X">X</a></p></div>           <!-- end content -->
 
716
            <div class="visualClear"></div>
 
717
          </div>
 
718
        </div>
 
719
      </div>
 
720
      <div id="column-one">
 
721
        <div id="p-cactions" class="portlet">
 
722
          <h5>Views</h5>
 
723
          <ul>
 
724
            <li id="ca-nstab-main" class="selected"><a title="View the content page [alt-c]" accesskey="c" href="http://gentoo-wiki.com/HOWTO_Xorg_and_Fonts">Article</a></li><li id="ca-talk"><a title="Discussion about the content page [alt-t]" accesskey="t" href="http://gentoo-wiki.com/Talk:HOWTO_Xorg_and_Fonts">Discussion and Bugs</a></li><li id="ca-edit"><a title="You can edit this page. Please use the preview button before saving. [alt-e]" accesskey="e" href="http://gentoo-wiki.com/index.php?title=HOWTO_Xorg_and_Fonts&amp;action=edit">Edit This Page</a></li><li id="ca-history"><a title="Past versions of this page. [alt-h]" accesskey="h" href="http://gentoo-wiki.com/index.php?title=HOWTO_Xorg_and_Fonts&amp;action=history">History</a></li>    </ul>
 
725
        </div>
 
726
        <div class="portlet" id="p-personal">
 
727
          <h5>Personal tools</h5>
 
728
          <div class="pBody">
 
729
            <ul>
 
730
            <li id="pt-login"><a title="You are encouraged to log in, it is not mandatory however. [alt-o]" accesskey="o" href="http://gentoo-wiki.com/index.php?title=Special:Userlogin&amp;returnto=HOWTO_Xorg_and_Fonts">Create an account or log in</a></li>            </ul>
 
731
          </div>
 
732
        </div>
 
733
        <div class="portlet" id="p-logo">
 
734
          <a style="background-image: url(/images/wiki.png);" href="http://gentoo-wiki.com/Main_Page" title="Main Page"></a>
 
735
        </div>
 
736
        <script type="text/javascript"> if (window.isMSIE55) fixalpha(); </script>
 
737
                <div class="portlet" id="p-navigation">
 
738
          <h5>Navigation</h5>
 
739
          <div class="pBody">
 
740
            <ul>
 
741
                      <li id="n-mainpage"><a title="Visit the Main Page [alt-z]" accesskey="z" href="http://gentoo-wiki.com/Main_Page">Main Page</a></li>
 
742
                      <li id="n-currentevents"><a title="Find background information on current events" href="http://gentoo-wiki.com/News">Wiki News</a></li>
 
743
                      <li id="n-recentchanges"><a title="The list of recent changes in the wiki. [alt-r]" accesskey="r" href="http://gentoo-wiki.com/Special:Recentchanges">Recent changes</a></li>
 
744
                      <li id="n-randompage"><a title="Load a random page [alt-x]" accesskey="x" href="http://gentoo-wiki.com/Special:Random">Random page</a></li>
 
745
                      <li id="n-help"><a title="The place to find out." href="http://gentoo-wiki.com/Help:Contents">Help</a></li>
 
746
                    </ul>
 
747
          </div>
 
748
        </div>
 
749
                <div id="p-search" class="portlet">
 
750
          <h5><label for="searchInput">Search</label></h5>
 
751
          <div class="pBody">
 
752
            <form name="searchform" action="/Special:Search" id="searchform">
 
753
              <input id="searchInput" name="search" accesskey="f" value="" type="text">
 
754
              <input name="go" class="searchButton" id="searchGoButton" value="Go" type="submit">&nbsp;<input name="fulltext" class="searchButton" value="Search" type="submit">
 
755
            </form>
 
756
          </div>
 
757
        </div>
 
758
<div class="portlet" id="p-tb">
 
759
          <h5>Indexes</h5>
 
760
<div class="pBody">
 
761
 <ul><li><a href="http://gentoo-wiki.com/Index:HOWTO" title="Index:HOWTO">HOWTO Index</a>
 
762
</li><li><a href="http://gentoo-wiki.com/Index:TIP" title="Index:TIP">Tips &amp; Tricks</a>
 
763
</li><li><a href="http://gentoo-wiki.com/Index:MAN" title="Index:MAN">MAN Pages</a>
 
764
</li><li><a href="http://gentoo-wiki.com/Index:Hardware" title="Index:Hardware">Hardware</a>
 
765
</li><li><a href="http://gentoo-wiki.com/Index:Security" title="Index:Security">Security</a>
 
766
</li><li><a href="http://gentoo-wiki.com/Index:FAQ" title="Index:FAQ">FAQ</a>
 
767
</li><li><a href="http://gentoo-wiki.com/Index:Misc" title="Index:Misc">Misc</a>
 
768
</li><li><a href="http://gentoo-wiki.com/Index:Index" title="Index:Index">Other Indexes</a>
 
769
</li></ul>
 
770
<hr>
 
771
<ul><li><a href="http://gentoo-wiki.com/Help:Contents" title="Help:Contents">Wiki Pages</a>
 
772
</li><li><a href="http://gentoo-wiki.com/Wanted" title="Wanted">Wanted Articles</a>
 
773
</li></ul>
 
774
</div>
 
775
</div>
 
776
        <div class="portlet" id="p-tb">
 
777
          <h5>Toolbox</h5>
 
778
          <div class="pBody">
 
779
            <ul>
 
780
                                  <li id="t-whatlinkshere"><a title="List of all wiki pages that link here [alt-j]" accesskey="j" href="http://gentoo-wiki.com/Special:Whatlinkshere/HOWTO_Xorg_and_Fonts">What links here</a></li>
 
781
                                  <li id="t-recentchangeslinked"><a title="Recent changes in pages linked from this page [alt-k]" accesskey="k" href="http://gentoo-wiki.com/Special:Recentchangeslinked/HOWTO_Xorg_and_Fonts">Related changes</a></li>
 
782
                                                                                              <li id="t-upload"><a title="Upload images or media files [alt-u]" accesskey="u" href="http://gentoo-wiki.com/Special:Upload">Upload file</a></li>               <li id="t-specialpages"><a title="List of all special pages [alt-q]" accesskey="q" href="http://gentoo-wiki.com/Special:Specialpages">Special pages</a></li>                            <li id="t-print"><a href="http://gentoo-wiki.com/index.php?title=HOWTO_Xorg_and_Fonts&amp;printable=yes">Printable version</a></li>
 
783
                    </ul>
 
784
          </div>
 
785
        </div>
 
786
        <div id="p-lang" class="portlet">
 
787
          <h5>In other languages</h5>
 
788
          <div class="pBody">
 
789
            <ul>
 
790
                      <li class="interwiki-fr">
 
791
              <a href="http://fr.gentoo-wiki.com/HOWTO_X.org_et_les_polices_d%27affichage">Français</a>
 
792
              </li>
 
793
                    </ul>
 
794
          </div>
 
795
        </div>
 
796
              </div><!-- end of the left (by default at least) column -->
 
797
      <div class="visualClear"></div>
 
798
      <div id="footer">
 
799
    <div id="f-poweredbyico"><a href="http://www.mediawiki.org/"><img src="HOWTO_Xorg_and_Fonts_files/poweredby_mediawiki_88x31" alt="MediaWiki"></a></div>             <ul id="f-list">
 
800
          <li id="f-lastmod"> This page was last modified 07:45, 6 January 2006.</li>     <li id="f-viewcount">This page has been accessed 158,371 times.</li>                            <li id="f-about"><a href="http://gentoo-wiki.com/Gentoo_Linux_Wiki:About" title="Gentoo Linux Wiki:About">About Gentoo Linux Wiki</a></li>      <li id="f-disclaimer"><a href="http://gentoo-wiki.com/Gentoo_Linux_Wiki:General_disclaimer" title="Gentoo Linux Wiki:General disclaimer">Disclaimers</a></li>         </ul>
 
801
      </div>
 
802
    </div>
 
803
    <!-- Served by gentoo-wiki.com in 0.09 secs. -->  </body></html>
 
 
b'\\ No newline at end of file'