ubuntu 字型 android stuido 漢字 顯示 方塊

來源:互聯網
上載者:User

標籤:

 

ubuntu 中的中文字型看著總覺的有點不爽,於是百度了下,這裡記錄下怎麼在 ubuntu 12.04 中安裝 windows 字型

 

Step1. 到 windows 系統中去拷貝一份字型

一般說來,windows 系統的字型都在 C/Windows/Fonts 中,所以直接進去挑選喜歡的字型就行了

為了方便,我直接把 Fonts 這個檔案夾中的所有字型拷貝下來,放在了 ubuntu 系統中的 ~/WinFonts 中

 

Step2. 在 /usr/share/fonts/ 中建立一個新的檔案夾 winfonts

建立這個檔案夾的主要目的是存放 windows 字型,免得和 ubuntu 字型混淆了

執行下面的命令

sudo mkdir /usr/share/fonts/winfonts

 

Step3. 將 ~/WinFonts 的字型複製到 /usr/share/fonts/winfonts 中

執行下面的命令

sudo cp ~/WinFonts/* /usr/share/fonts/winfonts

 

Step4. 修改新植入的字型的存取權限

先進入該檔案夾

cd /usr/share/fonts/winfonts

然後執行如下命令

sudo chmod 744 *

 

Step5. 產生核心字型資訊

分別執行如下三個命令

sudo mkfontscalesudo mkfontdirsudo fc-cache -f -v

ubuntu 字型 android stuido 漢字 顯示 方塊

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.