LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File 30-fake-bold-dont-antialias.conf of Package chinese-fonts-setting (Project home:swyear)

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <!--
Synthetic emboldening for fonts that do not have bold face available
-->
 <!--#沒有粗體的字型使用模擬粗體-->
 <match target="font" >
  <!-- check to see if the font is just regular -->
  <test compare="less_eq" name="weight" >
   <int>100</int>
  </test>
  <!-- check to see if the pattern requests bold -->
  <test target="pattern" compare="more_eq" name="weight" >
   <int>180</int>
  </test>
  <!-- set the embolden flag -->
  <edit mode="assign" name="embolden" >
   <bool>true</bool>
  </edit>
  <!-- disable antialias for small font-->
  <test compare="less" name="pixelsize" >
   <double>15.5</double>
  </test>
  <edit name="antialias" >
   <bool>false</bool>
  </edit>
 </match>
</fontconfig>