改變ubuntu下系統字體

在/etc/fonts/conf.d目錄下修改49-sansserif.conf
命令:
cd /etc/fonts/conf.d
sudo gedit 49-sansserif.conf


49-sansserif.conf內容如下:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
If the font still has no generic name, add sans-serif
-->
<match target="pattern">
<test qual="all" name="family" compare="not_eq">
<string>sans-serif</string>
</test>
<test qual="all" name="family" compare="not_eq">
<string>serif</string>
</test>
<test qual="all" name="family" compare="not_eq">
<string>monospace</string>
</test>
<edit name="family" mode="append_last">
<string>文泉驛正黑</string>(此處可以修改爲其他你喜歡的字體)
</edit>
</match>
</fontconfig>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章