天天看點

解決Debian-7.1下Chrome浏覽器字型難看的問題

首先在 Advance Setting 的 font 标簽頁下做如下配置:

解決Debian-7.1下Chrome浏覽器字型難看的問題

然後在使用者目錄下建立 .fonts.conf 檔案,内容如下:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <match target="font">
  <edit mode="assign" name="rgba">
   <const>rgb</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hinting">
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hintstyle">
   <const>hintmedium</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="antialias">
   <bool>true</bool>
  </edit>
 </match>
<!--
***** 
***** The following section was missing.
***** Adding it fixed web page fonts in Chrome.
*****
-->
 <match target="font">
  <edit name="autohint" mode="assign">
   <bool>true</bool>
  </edit>
 </match>
</fontconfig>      

重新打開Chrome,字型問題解決。