home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / language-selector / fontconfig / ko_KR < prev    next >
Encoding:
Text File  |  2006-04-07  |  4.1 KB  |  178 lines

  1. <fontconfig>
  2.  
  3. <!-- Turn on antialias and hinting with hintmedium -->
  4. <match target="font" >
  5.     <edit mode="assign" name="antialias" >
  6.         <bool>true</bool>
  7.     </edit>
  8. </match>
  9. <match target="font" >
  10.     <edit mode="assign" name="hinting" >
  11.         <bool>true</bool>
  12.     </edit>
  13. </match>
  14. <match target="font" >
  15.     <edit mode="assign" name="hintstyle" >
  16.         <const>hintmedium</const>
  17.     </edit>
  18. </match>
  19.  
  20. <!-- Control spacing property for Korean -->
  21. <match target="font">
  22.     <test name="lang" compare="contains">
  23.         <string>ko</string>
  24.     </test>
  25.     <test name="spacing" compare="eq">
  26.         <const>dual</const>
  27.     </test>
  28.     <edit name="spacing">
  29.         <const>proportional</const>
  30.     </edit>
  31.     <edit name="globaladvance" binding="strong">
  32.         <bool>false</bool>
  33.     </edit>
  34. </match>
  35. <match target="font">
  36.     <test name="lang" compare="contains">
  37.         <string>ko</string>
  38.     </test>
  39.     <test name="outline" compare="eq">
  40.         <bool>false</bool>
  41.     </test>
  42.     <test name="spacing" compare="eq">
  43.         <const>mono</const>
  44.         <const>charcell</const>
  45.     </test>
  46.     <edit name="spacing">
  47.         <const>proportional</const>
  48.     </edit>
  49.     <edit name="globaladvance" binding="strong">
  50.         <bool>false</bool>
  51.     </edit>
  52.     </match>
  53.  
  54. <!-- Turn off antialias and autohint for Korean fonts depending on pixelsize -->
  55. <match target="font">
  56.         <test name="lang" compare="contains">
  57.                 <string>ko</string>
  58.         </test>
  59.         <test name="pixelsize" compare="more">
  60.         <int>10</int>
  61.     </test>
  62.         <test name="pixelsize" compare="less">
  63.         <int>22</int>
  64.     </test>
  65.         <edit name="antialias" mode="assign">
  66.         <bool>false</bool>
  67.     </edit>
  68.         <edit name="autohint" mode="assign">
  69.         <bool>false</bool>
  70.     </edit>
  71.         <edit name="hintstyle" mode="assign">
  72.         <const>hintmedium</const>
  73.     </edit>
  74. </match>
  75.  
  76. <!-- Turn on antialias and hinting with hintmedium for ttf-Unfonts -->
  77. <match target="font">
  78.         <test name="family" compare="contains">
  79.                 <string>Un</string>
  80.         </test>
  81.         <edit name="antialias" mode="assign">
  82.         <bool>true</bool>
  83.     </edit>
  84.         <edit name="hinting" mode="assign">
  85.         <bool>true</bool>
  86.     </edit>
  87.     <edit name="hintsytle" mode="assign">
  88.         <const>hintmedium</const>
  89.     </edit>
  90. </match>
  91.  
  92. <!-- Turn off antialias and autohint for ttf-alee depending on pixelsize -->
  93. <match target="font">
  94.         <test name="family">
  95.                 <string>EunGuseul</string>
  96.         </test>
  97.         <edit name="autohint" mode="assign">
  98.         <bool>true</bool>
  99.     </edit>
  100. </match>
  101. <match target="font">
  102.         <test name="family">
  103.                 <string>EunGuseul</string>
  104.                 <string>EunGuseul Mono</string>
  105.         </test>
  106.     <test name="pixelsize" compare="more">
  107.         <int>11</int>
  108.     </test>
  109.     <test name="pixelsize" compare="less">
  110.         <int>16</int>
  111.     </test>
  112.     <edit name="antialias" mode="assign">
  113.         <bool>false</bool>
  114.     </edit>
  115.         <edit name="autohint" mode="assign">
  116.         <bool>false</bool>
  117.     </edit>
  118. </match>
  119.  
  120. <!-- Set preferred Korean fonts -->
  121. <match target="font">
  122.         <test name="lang" compare="contains">
  123.                 <string>ko</string>
  124.         </test>
  125.     <alias>
  126.             <family>serif</family>
  127.             <prefer>
  128.             <family>UnBatang</family>
  129.             </prefer>
  130.     </alias>
  131. </match>
  132. <match target="font">
  133.         <test name="lang" compare="contains">
  134.                 <string>ko</string>
  135.         </test>
  136.     <alias>
  137.             <family>sans-serif</family>
  138.             <prefer>
  139.                     <family>UnDotum</family>
  140.             <family>EunGuseul</family>
  141.             </prefer>
  142.     </alias>
  143. </match>
  144. <match target="font">
  145.         <test name="lang" compare="contains">
  146.                 <string>ko</string>
  147.         </test>
  148.     <alias>
  149.             <family>monospace</family>
  150.         <prefer>
  151.             <family>UnDotum</family>
  152.                 <family>EunGuseul Mono</family>
  153.         </prefer>
  154.     </alias>
  155. </match>
  156.  
  157. <!-- Bind EunGuseul with Bitstream Vera Sans -->
  158. <match target="pattern">
  159.     <test name="family">
  160.         <string>EunGuseul</string>
  161.     </test>
  162.     <edit mode="append" binding="strong" name="family">
  163.         <string>Bitstream Vera Sans</string>
  164.     </edit>
  165. </match>
  166.  
  167. <!-- Bind EunGuseul Mono with Bitstream Vera Sans Mono -->
  168. <match target="pattern">
  169.     <test name="family">
  170.         <string>EunGuseul Mono</string>
  171.     </test>
  172.     <edit mode="append" binding="strong" name="family">
  173.         <string>Bitstream Vera Sans Mono</string>
  174.     </edit>
  175. </match> 
  176.  
  177. </fontconfig>
  178.