1. 安裝字體
sudo apt-get install ttf-mscorefonts-installer #微軟字體
sudo apt-get install xfonts-wqy #文泉驛-點陣宋體
cd ~
wget http://www.stchman.com/tools/MS_fonts/tahoma.zip #Tahoma 字體
sudo unzip -d /usr/share/fonts/truetype/msttcorefonts ~/tahoma.zip
sudo fc-cache -f -v
rm -f ~/tahoma.zip
sudo fc-cache -f -s -v #刷新字體緩存
如下設置:
3. 配置:-請->參考鏈接
注意使用文泉驛的視覺習慣工具把網頁上的英文和中文字體都調整清晰, 點 Create, 按說明保存好。
本人調的是 Tahoma 第一位,wenquanyi bitmap 第二位, 這樣英文和中文都沒問題。
4. 上一步配置對 Firefox 和 Thunderbird 無效, 再設置 ~/.fonts.conf, 在 <fontconfig> 中加入:
<match target="font">
<edit mode="assign" name="autohint">
<bool>false</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hintstyle">
<const>hintfull</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="antialias">
<bool>false</bool>
</edit>
</match>
<!-- 大字體的時候啓用抗鋸齒 -->
<match target="font" >
<test name="size" qual="any" compare="more">
<double>12</double>
</test>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
</match>
<match target="font" >
<test name="pixelsize" qual="any" compare="more">
<double>16</double>
</test>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
</match>