Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux教程

Fedora Core 6 下安裝中文 TTF 字型

我的筆電是雙系統,所以字型直接從 Windows XP 那邊搬過來,比上網找字型包快得多。以下以 Fedora Core 6 為例。

1. 掛載 C 槽,裝置名稱依分區而異:
mount /dev/hda1 /mnt -t vfat

2. 建立自訂目錄:
mkdir -p /usr/share/fonts/custom

3. 複製字型檔:
cp -f /mnt/windows/fonts/simsun.ttf /usr/share/fonts/custom
cp -f /mnt/windows/fonts/tohoma.ttf /usr/share/fonts/custom

4. 停止 xfs 服務:
service xfs stop

5. 進入自訂目錄:
cd /usr/share/fonts/custom

6. 建立 fonts.scale:
ttmkfdir -o fonts.scale

7. 產生字型目錄索引:
mkfontdir

8. 把新字型路徑加入 xfs 設定:
chkfontpath -a /usr/share/fonts/custom

9. 重新啟動 xfs:
service xfs start

10. 進入 X:
startx

跑完這十步,字型服務已重新載入,中文就能正常顯示。若某個應用程式仍顯示方塊,重新登入一次即可。

Copyright © Linux教程網 All Rights Reserved