:: [DNG] local.conf for Truetype fonts…
Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Hughe Chung
Fecha:  
A: dng
Asunto: [DNG] local.conf for Truetype fonts in Xorg
Hi,

To display eye-pleasing Truetype fonts in Xorg, /etc/fonts/local.conf
needs to set few options:
- Anti-aliasing
- Hinting
- RGB type of LCD monitor
- LCD filter

The link (http://www.lagom.nl/lcd-test/subpixel.php) explains how to
identify RGB type of your LCD monitor.

Here is my /etc/fonts/local.conf file.
<?xml version="1.0"?>
       <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
    Reference: https://www.freebsd.org/doc/handbook/x-fonts.html
    https://wiki.archlinux.org/index.php/Font_configuration
-->


<match target="font">
        <test name="size" compare="less">
        <double>10</double>
        </test>
        <edit name="antialias" mode="assign">
        <bool>false</bool>
        </edit>
    </match>
    <match target="font">
        <test name="pixelsize" compare="less" qual="any">
        <double>10</double>
        </test>
        <edit mode="assign" name="antialias">
        <bool>false</bool>
        </edit>
    </match>


<match target="font">
    <edit name="hinting" mode="assign">
               <bool>true</bool>
         </edit>
</match>



<match target="font">
         <edit name="hintstyle" mode="assign">
               <const>hintfull</const>
         </edit>
</match>


<match target="font">
    <edit name="rgba" mode="assign">
               <const>rgb</const>
         </edit>
</match>


<match target="font">
    <edit mode="assign" name="lcdfilter">
               <const>lcddefault</const>
    </edit>
</match>



<match target="pattern" name="family">
       <test qual="any" name="family">
           <string>fixed</string>
       </test>
       <edit name="family" mode="assign">
           <string>mono</string>
       </edit>
    </match>
    <match target="pattern" name="family">
        <test qual="any" name="family">
        <string>console</string>
        </test>
        <edit name="family" mode="assign">
        <string>mono</string>
        </edit>
</match>


<match target="pattern" name="family">
         <test qual="any" name="family">
         <string>mono</string>
         </test>
         <edit name="spacing" mode="assign">
         <int>100</int>
         </edit>
</match>
</fontconfig>