wiki:XWindowSystemComponents

Version 2 (modified by trac, 17 years ago) ( diff )

--

X Window System Components

Fonts

Arphic fonts look blurry at small sizes. The FireFly font can be configured to look sharper due to the use of the optimized embedded bitmaps present in this font (but Fontconfig doesn't use them by default).

First, teach Fontconfig to prefer this font as a candidate for Monospace and other generic aliases:

sed -i -e 's,^\(\t\t\t<family>Kochi.*\)$$,\1\n\t\t\t<family>AR PL New Sung</family>,' \
    /etc/fonts/fonts.conf

Then, tell Fontconfig to use the embedded bitmaps for font sizes that really have such bitmaps, by adding this to /etc/fonts/local.conf or fonts.conf:

 <match target="font">
   <test name="family">
     <string>AR PL New Sung</string>
   </test>
   <test name="pixelsize" compare="less_eq">
     <double>16.0</double>
   </test>
   <test name="pixelsize" compare="more_eq">
     <double>11.0</double>
   </test>
   <edit name="antialias" mode="assign">
     <bool>false</bool>
   </edit>
 </match>

Up
Top

Attachments (11)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.