Update the anti-aliasing section:

- add infos about fc-cache
- add a fix for Helvetica fonts
- add some missing end XML tags to local.font

PR:		docs/52250
Submitted by:	marcus
This commit is contained in:
Marc Fonvieille 2003-05-18 19:54:10 +00:00
parent 5cd809bf5f
commit 8ff5a70ed7
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=16958

View file

@ -759,6 +759,12 @@ EndSection</programlisting>
<programlisting>&lt;dir&gt;/path/to/my/fonts&lt;/dir&gt;</programlisting>
<para>After adding new fonts, and especially new font directories,
you should run the following command to rebuild the font
caches:</para>
<screen>&prompt.root; <userinput>fc-cache -f</userinput></screen
<para>Anti-aliasing makes borders slightly fuzzy, which makes very
small text more readable and removes <quote>staircases</quote> from
large text, but can cause eyestrain if applied to normal text. To
@ -786,6 +792,7 @@ EndSection</programlisting>
<programlisting> &lt;match target="pattern" name="family"&gt;
&lt;test qual="any" name="family"&gt;
&lt;string&gt;fixed&lt;/string&gt;
&lt;/test&gt;
&lt;edit name="family" mode="assign"&gt;
&lt;string&gt;mono&lt;/string&gt;
&lt;/edit&gt;
@ -793,6 +800,7 @@ EndSection</programlisting>
&lt;match target="pattern" name="family"&gt;
&lt;test qual="any" name="family"&gt;
&lt;string&gt;console&lt;/string&gt;
&lt;/test&gt;
&lt;edit name="family" mode="assign"&gt;
&lt;string&gt;mono&lt;/string&gt;
&lt;/edit&gt;
@ -804,11 +812,28 @@ EndSection</programlisting>
<programlisting> &lt;match target="pattern" name="family"&gt;
&lt;test qual="any" name="family"&gt;
&lt;string&gt;mono&lt;/string&gt;
&lt;/test&gt;
&lt;edit name="spacing" mode="assign"&gt;
&lt;int&gt;100&lt;/int&gt;
&lt;/edit&gt;
&lt;/match&gt; </programlisting>
<para>Certain fonts, such as Helvetica, may have a problem when
anti-aliased. Usually this manifests itself as a font that
seems cut in half vertically. At worst, it may cause
applications such as <application>Mozilla</application> to
crash. To avoid this, consider adding the following to
<filename>local.conf</filename>:</para>
<programlisting> &lt;match target="pattern" name="family"&gt;
&lt;test qual="any" name="family"&gt;
&lt;string&gt;Helvetica&lt;/string&gt;
&lt;/test&gt;
&lt;edit name="family" mode="assign"&gt;
&lt;string&gt;sans-serif&lt;/string&gt;
&lt;/edit&gt;
&lt;/match&gt; </programlisting>
<para>Once you have finished editing
<filename>local.conf</filename> make sure you end the file
with the &lt;/fontconfig&gt; tag. Not doing this will cause