Installation manual
5. 10. Sub-Pixel Font-Rendering 37
5. 10. Sub-Pixel Font-Rendering
Sub-Pixel Font-Rendering is a Good Thing™. It’sactually an old idea, whose time has finally come or will come
really soon nowonaLCD display near you. Totriple the horizontal screen resolution for font rendering right
now, wehav e to install XFree86 4.2.1 and then compile and install the newfont configuration scheme fontconfig
and update the X Render Extension together with libXft.
Debian Packages needed for compiling fontconfig:
libexpat1−dev
libfreetype6−dev
Compiling and installing fontconfig and Xft:
#> eval ‘build−i686‘
#>
#> cd /usr/local/packages
#> mkdir −p fontconfig−2.0/local/src
#> cd fontconfig−2.0/local/src
#> wget http://fontconfig.org/release/fcpackage.2_0.tar.gz
#> tar xzf fcpackage.2_0.tar.gz
#>
#> cd fcpackage.2_0/fontconfig
#> ./configure −−prefix=/usr/local/packages/fontconfig−2.0/X11R6
#> make
#> make install
#> cd /usr/local/stow
#> ln −s ../packages/fontconfig−2.0 .
#> stow −v −−target=/usr fontconfig−2.0
#>
#> cd /usr/local/packages/fontconfig−2.0/local/src/fcpackage.2_0/Xrender
#> xmkmf −a
#> make
#> dpkg−divert −−rename /usr/X11R6/lib/libXrender.a
#> dpkg−divert −−rename /usr/include/X11/extensions/Xrender.h
#> dpkg−divert −−rename /usr/include/X11/extensions/render.h
#> dpkg−divert −−rename /usr/include/X11/extensions/renderproto.h
#> make install
#>
#> cd ../Xft1
#> xmkmf −a
#> make
#> make install
#>
#> cd ../Xft
#> ./configure −−prefix=/usr/local/packages/fontconfig−2.0/X11R6
#> make
#> dpkg−divert −−rename /usr/include/X11/Xft/Xft.h
#> make install
#> cd /usr/local/stow
#> stow −v −D −−target=/usr fontconfig−2.0
#> cd /usr/local/packages/fontconfig−2.0
#> mkdir −p lib/pkgconfig
#> ln −s X11R6/lib/pkgconfig/* lib/pkgconfig
#> rm −rf local/src/fcpackage.2_0
#> cd /usr/local/stow
#> stow −v −−target=/usr fontconfig−2.0
Xrender and Xft1 can not be stowed and must be installed directly into the X11R6 tree. This makes removing
these files a bit cumbersome.
Removing fontconfig-2.0:
#> cd /usr/local/stow
#> stow −v −D −−target=/usr fontconfig−2.0
#> rm fontconfig−2.0
#> rm −rf /usr/local/packages/fontconfig−2.0