Clarify subpixel smoothing for fonts in Handbook

Norbert Papke npapke at acm.org
Sun Oct 11 20:40:15 UTC 2009


In section 5.5.3, the handbook explains how to improve the quality of fonts on 
LCD monitors by enabling subpixel smoothing.  However, the section does not 
draw attention to the fact that the print/freetype2 port must be compiled with 
non-default options to allow this.

The following patch adds a brief explanation.  I am unsure whether the port 
makefile's patent warning should be mentioned.

--- en_US.ISO8859-1/books/handbook/x11/chapter.sgml     2 Oct 2009 08:32:07 -0000       1.195
+++ en_US.ISO8859-1/books/handbook/x11/chapter.sgml     11 Oct 2009 20:02:06 -0000
@@ -1078,8 +1078,17 @@
        <para>One last point: with an LCD screen, sub-pixel sampling may be
         desired.  This basically treats the (horizontally separated)
         red, green and blue components separately to improve the horizontal
-        resolution; the results can be dramatic.  To enable this, add the
-        line somewhere in the <filename>local.conf</filename> file:</para>
+        resolution; the results can be dramatic.  To enable this, compile the
+        <filename role="package">print/freetype2</filename> port with
+        LCD filtering enabled.</para>
+
+        <screen>
+        &prompt.root; <userinput>cd /usr/ports/print/freetype2</userinput>
+        &prompt.root; <userinput>make -DWITH_LCD_FILTERING clean install</userinput>
+        </screen>
+
+       <para>Then add the following lines to the <filename>local.conf</filename>
+       file:</para>

        <programlisting>
          <match target="font">

Cheers,
 
-- Norbert Papke.
   npapke at acm.org


http://saveournet.ca
Protecting your Internet's level playing field



More information about the freebsd-doc mailing list