2008年4月26日星期六

Install Arial Unicode MS to Fedora 9

Here are the steps of installing Arial Unicode MS font to Fedora 9
1. download the font file arialuni.ttf
2. open the terminal change to root by using the command su and copy the font file to destination "/usr/share/fonts/" by using this command:
cp arialuni.tff /usr/share/fonts/ p.s. after using the command su, the home directory was changed to root, so if the arialuni.ttf is in the other home directory you need to type the file path explicitly
3. To refresh the fonts directory by using this command:
fc-cache –v –f /usr/share/fonts/

4. if the fc-cache command does not work, you need to use the "touch" command to touch the font folder:

touch /usr/share/fonts
touch /usr/share/fonts/*
touch /usr/share/fonts/*/*
touch /usr/share/fonts/*/*/*
and then follow the step 3 one again and now you can choose the font from the font console.

fc-cache指令是什麼?

fc-cache的功能是掃描字型檔的子目錄,然後再建立包含字型資訊的快取(cache)給應用程式。簡單的說就是讓系統登錄指定目錄的字型。在我們執行fc-cache後面的「-f」參數,是強迫寫入(force)的意思,而「-v」是顯示執行資訊(verbose)的意思。


The above step just setting for the current user's environment.you need to do the following steps to configure for the other users:

分別編輯以下三個檔案,若檔案不存在,請自行建立:

nano ~/.gtkrc-2.0 (~代表使用者自己的家目錄)
su (以下兩個檔案要管理員權限方能操作)
nano /root/.gtkrc-2.0
nano /etc/gtk-2.0/gtkrc

在三個檔案的最後加入一行指令:
gtk-font-name = "Arial Unicode Ms 10"