Skip site navigation (1)Skip section navigation (2)
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>

next in thread | raw e-mail | index | archive | help

>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>&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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305142124.h4ELOc7B034476>