home *** CD-ROM | disk | FTP | other *** search
/ chilidog.highland.cc.ks.us / chilidog.highland.cc.ks.us.zip / chilidog.highland.cc.ks.us / backup / bradford.20120305.etc.tar.gz / bradford.20120305.etc.tar / etc / fonts / suse-hinting.conf < prev    next >
Extensible Markup Language  |  2006-06-09  |  7KB  |  168 lines

  1. <?xml version="1.0"?>
  2. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  3. <fontconfig>
  4.  
  5. <!-- Generated by SuSEconfig.fonts, don't edit, your changes will get lost. -->
  6. <!-- Edit /etc/sysconfig/fonts-config instead.                              -->
  7. <!-- Or put rules into your personal config file ~/.fonts.conf.             -->
  8.  
  9. <!-- ************************************************************ -->
  10. <!-- Hinting and antialiasing                                     -->
  11. <!-- ************************************************************ -->
  12.  
  13. <!--
  14.     Fonts which have high quality byte code interpreter instructions
  15.     can look very good in small sizes when rendered in black and white
  16.     (antialias=false) using the byte code interpreter (autohint=false).
  17.     The results look as good as high quality bitmap fonts.
  18.  
  19.     On the other hand, most Fonts do not have good byte code interpreter
  20.     instructions and look *very* ugly when rendered like this.
  21.     I.e. for most fonts autohint=true and antialias=true gives best
  22.     results.
  23.  
  24.     For fonts which do have good byte code instructions, it seems
  25.     to be a matter of taste. Most users apparently do not like the
  26.     bitmaps no matter how good they are and prefer to render
  27.     these fonts with anti-aliasing as well.
  28.  
  29.     When rendering fonts which do have good byte code with anti-aliasing
  30.     (antialias=true), the byte code apparently doesn't help much, to
  31.     the contrary, it produces strange rendering artifacts.
  32.     Therefore it is usually better to always use the autohinter (autohint=true)
  33.     when rendering with anti-aliasing.
  34.  
  35. -->
  36.  
  37.         <!--
  38.             Using the autohinter, hintstyle=hintfull and anti-aliasing.
  39.             This is a good default for most fonts.
  40.  
  41.             Match on "pattern" for the default, not on "font" to make
  42.             it easier to override the default using FcPatternDel()
  43.             and FcPatternAdd...() (see bugzilla #104365).
  44.         -->
  45.         <match target="pattern">
  46.                 <edit name="autohint">
  47.                         <bool>true</bool>
  48.                 </edit>
  49.                 <edit name="hintstyle">
  50.                         <const>hintfull</const>
  51.                 </edit>
  52.                 <edit name="antialias">
  53.                         <bool>true</bool>
  54.                 </edit>
  55.         </match>
  56.  
  57.         <!--
  58.             The following rule sets up black and white rendering with
  59.             the byte code interpreter for a small list of fonts which
  60.             are known to have good byte code and give bitmap quality
  61.             results at small sizes.
  62.             The pixelsize limit is set to '0' though, which effectively
  63.             disables this rule by default because most users don't like
  64.             that bitmap look and feel.
  65.             If you like a bitmap look and feel of your desktop,
  66.             copy this rule into your ~/.fonts.conf file and replace the '0'
  67.             with non-zero pixelsize limit. Using '18' as the pixelsize
  68.             limit is a good choice if you have the fonts in this list installed
  69.             and like a bitmap look and feel. 
  70.         -->
  71.         <match target="font">
  72.                 <test name="family">
  73.                         <string>Andale Mono</string>
  74.                         <string>Arial</string>
  75.                         <string>Comic Sans MS</string>
  76.                         <string>Georgia</string>
  77.                         <string>Impact</string>
  78.                         <string>Trebuchet MS</string>
  79.                         <string>Verdana</string>
  80.                         <string>Courier New</string>
  81.                         <string>Times New Roman</string>
  82.                         <string>Tahoma</string>
  83.                         <string>Webdings</string>
  84.                         <string>Albany AMT</string>
  85.                         <string>Thorndale AMT</string>
  86.                         <string>Cumberland AMT</string>
  87.                         <string>Andale Sans</string>
  88.                         <string>Andy MT</string>
  89.                         <string>Bell MT</string>
  90.                         <string>Monotype Sorts</string>
  91.                 </test>
  92.         <test name="pixelsize" compare="less_eq">
  93.                 <double>0</double>
  94.         </test>
  95.                 <edit name="autohint">
  96.                         <bool>false</bool>
  97.                 </edit>
  98.                 <edit name="antialias">
  99.                         <bool>false</bool>
  100.                 </edit>
  101.         </match>
  102.  
  103.  
  104. <!--
  105.   Some CJK fonts require the byte code interpreter to be rendered correctly.
  106.  
  107.   These are composite fonts which store components and composing information
  108.   and compose the glyphs on the fly using the hinting instructions.
  109.  
  110.   For all such fonts we switch off the autohinter here.
  111.   When "autohint" is set to "false", the byte code interpreter will
  112.   be used if it has been enabled at all when compiling freetype2.
  113.  
  114. -->
  115.  
  116.         <match target="font">
  117.                 <test name="family">
  118.                         <string>MingLiU</string>
  119.                         <string>PMingLiU</string>
  120.                 </test>
  121.                 <edit name="autohint">
  122.                         <bool>false</bool>
  123.                 </edit>
  124.         </match>
  125.  
  126. <!-- 
  127. Hinting for CJK fonts in freetype doesn't yet work as well as for Latin fonts.
  128.  
  129. But our freetype package has the patches by Takashi IWAI <tiwai@suse.de>
  130. applied which improve the hinting results for CJK fonts a lot.
  131.  
  132. If you are using a freetype package without these patches you may prefer
  133. to switch off hinting by setting hintstyle=hintnone for CJK fonts.
  134.  
  135. This can be achieved by using the following rule:
  136.  
  137.         <match target="font">
  138.                 <test name="lang" compare="contains">
  139.                         <string>ja</string>
  140.                         <string>zh</string>
  141.                         <string>ko</string>
  142.                 </test>
  143.                 <edit name="hintstyle" mode="assign">
  144.                         <const>hintnone</const>
  145.                 </edit>
  146.         </match>
  147. -->
  148.  
  149. <!--
  150. for some Bengali fonts (e.g. "Mukti Narrow"), the autohinter works well
  151. with the patch from http://www.kde.gr.jp/~akito/patch/freetype2/2.1.7
  152. applied. But for "Likhan" it still doesn't work that well
  153. (look how the "matra" lines at the top line up). Therefore, switch
  154. off the autohinter for the "Likhan" font:
  155. -->
  156.  
  157.         <match target="font">
  158.                 <test name="family">
  159.                         <string>Likhan</string>
  160.                 </test>
  161.                 <edit name="hintstyle">
  162.                         <const>hintnone</const>
  163.                 </edit>
  164.         </match>
  165.  
  166.  
  167. </fontconfig>
  168.