教你如何在 Ubuntu 中更換字體


點擊「閱讀原文」查看良許原創(chuàng)精品視頻。
點擊「閱讀原文」查看良許原創(chuàng)精品視頻。
bob@ubuntu-18-04:~$?wget?https://github.com/source-foundry/Hack/releases/download/v3.003/Hack-v3.003-ttf.tar.xz

現(xiàn)在解壓文件:
bob@ubuntu-18-04:~$?tar?-xvf?Hack-v3.003-ttf.tar.xz?
./
./Hack-Bold.ttf
./Hack-BoldItalic.ttf
./Hack-Italic.ttf
./Hack-Regular.ttf
/usr/share/fonts/字體目錄中,或者安裝在以下目錄中:~/.local/share/fonts/或/usr/local/share/fonts。在本例中,我們將使用~/.local/share/fonts/path/。如果目錄不存在,請使用以下命令創(chuàng)建它:bob@ubuntu-18-04:~$?mkdir?-p?~/.local/share/fonts
bob@ubuntu-18-04:~$?mv?Hack-*.ttf?~/.local/share/fonts
bob@ubuntu-18-04:~$?fc-cache?-f?-v

bob@ubuntu-18-04:~$?fc-list?|grep?"Hack"

bob@ubuntu-18-04:~$?rm?-rf?~/.local/share/fonts/Hack-*.ttf
bob@ubuntu-18-04:~$?fc-cache
推薦閱讀:
5T技術資源大放送!包括但不限于:C/C++,Linux,Python,Java,PHP,人工智能,單片機,樹莓派,等等。在公眾號內(nèi)回復「1024」,即可免費獲?。。?/span>
評論
圖片
表情
