覺得Linux系統(tǒng)默認字體不好看,想換個風格?想增加系統(tǒng)字體的種類?下面隨小編一起來學習下如何為Linux系統(tǒng)安裝自定義字體。
1、修改字體配置文件(需要Root權(quán)限),將需要添加的字體添加入列表
代碼如下:
sudo gedit /etc/fonts/fonts.conf
代碼如下:
《!-- Font directory list --》
《dir》/usr/share/fonts《/dir》
《dir》/usr/X11R6/lib/X11/fonts《/dir》
《dir》/usr/local/share/fonts《/dir》
《dir》~/.fonts《/dir》
《dir》~/setting/fonts《/dir》
2、執(zhí)行以下命令
代碼如下:
sudo mkfontscale
sudo mkfontdir
sudo fc-cache -fv
上面就是Linux安裝自定義字體的相關(guān)介紹了,首先你要確定你是否有修改權(quán)限,再在列表中添加自定義的字體,最后執(zhí)行文中命令。