Date: Wed, 14 May 2003 17:24:38 -0400 (EDT) From: Joe Marcus Clarke <marcus@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: docs/52250: [PATCH] Another anti-alias update for the handbook Message-ID: <200305142124.h4ELOc7B034476@shumai.marcuscom.com> Resent-Message-ID: <200305142130.h4ELU43F069991@freefall.freebsd.org>
index | next in thread | raw e-mail
>Number: 52250
>Category: docs
>Synopsis: [PATCH] Another anti-alias update for the handbook
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-doc
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Wed May 14 14:30:04 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Joe Marcus Clarke
>Release: FreeBSD 4.8-STABLE i386
>Organization:
MarcusCom, Inc.
>Environment:
System: FreeBSD shumai.marcuscom.com 4.8-STABLE FreeBSD 4.8-STABLE #10: Sun May 11 17:00:16 EDT 2003 marcus@shumai.marcuscom.com:/usr/obj/usr/src/sys/SHUMAI i386
>Description:
This is another update to the anti-alias fonts section of the handbook to
cover fc-cache as well as a corrupt Helvetica fix. It also adds some
missing end tags to some of the local.conf XML.
>How-To-Repeat:
>Fix:
--- chapter.sgml.diff begins here ---
Index: chapter.sgml
===================================================================
RCS file: /home/dcvs/doc/en_US.ISO8859-1/books/handbook/x11/chapter.sgml,v
retrieving revision 1.116
diff -u -r1.116 chapter.sgml
--- chapter.sgml 11 May 2003 10:08:59 -0000 1.116
+++ chapter.sgml 11 May 2003 18:04:51 -0000
@@ -759,6 +759,12 @@
<programlisting><dir>/path/to/my/fonts</dir></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 @@
<programlisting> <match target="pattern" name="family">
<test qual="any" name="family">
<string>fixed</string>
+ </test>
<edit name="family" mode="assign">
<string>mono</string>
</edit>
@@ -793,6 +800,7 @@
<match target="pattern" name="family">
<test qual="any" name="family">
<string>console</string>
+ </test>
<edit name="family" mode="assign">
<string>mono</string>
</edit>
@@ -804,10 +812,27 @@
<programlisting> <match target="pattern" name="family">
<test qual="any" name="family">
<string>mono</string>
+ </test>
<edit name="spacing" mode="assign">
<int>100</int>
</edit>
</match> </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> <match target="pattern" name="family">
+ <test qual="any" name="family">
+ <string>Helvetica</string>
+ </test>
+ <edit name="family" mode="assign">
+ <string>sans-serif</string>
+ </edit>
+ </match> </programlisting>
<para>Once you have finished editing
<filename>local.conf</filename> make sure you end the file
--- chapter.sgml.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305142124.h4ELOc7B034476>
