ubuntu 字體設置像Windows 字體

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   #刷新字體緩存



2. 進入 “Advanced settings" 設置(如果沒有安裝,執行 sudo apt-get install gnome-tweak-tool)

如下設置:

 

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>


5. 登出 或 重啓系統 就可看到完整的效果(由於圖片受到壓縮,請在圖片上點右鍵,在新窗口中查看)



發佈了57 篇原創文章 · 獲贊 15 · 訪問量 15萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章