Fedora core 4.0 中添加simsun字體,使系統字體更清晰
以下主要講如何在Fedora core 4.0 中添加simsun字體,使系統字體更清晰,希望對大家有所幫助。
一、添加一個字體simsun.ttc
在 /home/的目錄中建一個fonts的目錄;
[root@localhost beinan]# mkdir /home/fonts
把simsun.ttc文件拷到這個目錄中;
windows一般都有這個字體,如果不知道如何從windows中抓到Linux系統中,請看置頂的帖子中關于FAT32和NTFS的加載的辦法。
然后改變一下 /home/fonts的權限;
[root@localhost ~]# chmod -R 755 /home/fonts
二、我們下載 firefly的補丁包;這些包都是針對Slackware系統的補丁,我們一樣可以用在Fedora core 中;
從這里下載三個補丁包:
http://slack.vetcafe.net/usefulpkgs/firefly
把三個補丁包放在一個目錄中,然后解壓:
[root@localhost firefly]# ls
fontconfig-2.2.96-i486-firefly.tgz freetype2-2.1.9-i486-firefly.tgz libXft-2.1.6-i486-firefly.tgz
[root@localhost firefly]# tar zxvf fontconfig-2.2.96-i486-firefly.tgz
[root@localhost firefly]# tar zxvf freetype2-2.1.9-i486-firefly.tgz
[root@localhost firefly]# tar zxvf libXft-2.1.6-i486-firefly.tgz
解出來總共有三個目錄,一個是 etc ;一個是usr;一個是install
我們只把 etc 和usr拷到到 /
[root@localhost firefly]# cp -R --reply=yes etc /
[root@localhost firefly]# cp -R --reply=yes usr /
如果有提示是不是覆蓋原文件,都是覆蓋;
三、更改/etc/fonts/fonts.conf和 /etc/X11/xorg.conf 文件來配置 ;
在 /etc/fonts/fonts.conf 找到
然后再改 /etc/X11/xorg.conf
在FontPath "unix/:7100" 前加一行
FontPath "/home/fonts"
重啟X;在Fedora Core 4.0中,您可能要用到 pkill gdm ;因為此時X已經崩潰,我實踐了一下,只能用pkill gdm來操作;
[root@localhost ~]# pkill gdm
四、設置桌面GNOME的字體;
菜單=》桌面=》首選項=》字體;
字體都設置為sans 10或者 11或者12,大小可以自己來調;
字體渲染-》最佳形狀;
最后。。。。。。完成;
【編輯推薦】