From marcus@shumai.marcuscom.com  Wed May 14 14:24:42 2003
Return-Path: <marcus@shumai.marcuscom.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id EC2DF37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 14 May 2003 14:24:41 -0700 (PDT)
Received: from shumai.marcuscom.com (rdu57-17-158.nc.rr.com [66.57.17.158])
	by mx1.FreeBSD.org (Postfix) with ESMTP id F3F1B43F3F
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 14 May 2003 14:24:40 -0700 (PDT)
	(envelope-from marcus@shumai.marcuscom.com)
Received: from shumai.marcuscom.com (localhost.marcuscom.com [127.0.0.1])
	by shumai.marcuscom.com (8.12.9/8.12.9) with ESMTP id h4ELOcrA034477
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 14 May 2003 17:24:38 -0400 (EDT)
	(envelope-from marcus@shumai.marcuscom.com)
Received: (from marcus@localhost)
	by shumai.marcuscom.com (8.12.9/8.12.9/Submit) id h4ELOc7B034476;
	Wed, 14 May 2003 17:24:38 -0400 (EDT)
Message-Id: <200305142124.h4ELOc7B034476@shumai.marcuscom.com>
Date: Wed, 14 May 2003 17:24:38 -0400 (EDT)
From: Joe Marcus Clarke <marcus@freebsd.org>
Reply-To: Joe Marcus Clarke <marcus@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] Another anti-alias update for the handbook
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         52250
>Category:       docs
>Synopsis:       [PATCH] Another anti-alias update for the handbook
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    blackend
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 14 14:30:04 PDT 2003
>Closed-Date:    Sun May 18 12:54:40 PDT 2003
>Last-Modified:  Sun May 18 12:54:40 PDT 2003
>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>&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 @@
      <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 @@
         &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,10 +812,27 @@
       <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
--- chapter.sgml.diff ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->blackend 
Responsible-Changed-By: blackend 
Responsible-Changed-When: Thu May 15 00:42:48 PDT 2003 
Responsible-Changed-Why:  
I'll take care of this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=52250 
State-Changed-From-To: open->closed 
State-Changed-By: blackend 
State-Changed-When: Sun May 18 12:54:18 PDT 2003 
State-Changed-Why:  
Committed, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=52250 
>Unformatted:
