fedora12 微软雅黑
把msyh.ttf和msyhbd.ttf文件复制到 $HOME/.fonts 目录中
[ztg@localhost ~]$ mkdir .fonts
[ztg@localhost ~]$ cp 微软雅黑/* .fonts/
[ztg@localhost ~]$ ls .fonts
msyhbd.ttf msyh.ttf
[ztg@localhost ~]$ cd .fonts
[ztg@localhost .fonts]$ chmod 755 *
[ztg@localhost .fonts]$ ll
总用量 28688
-rwxr-xr-x. 1 ztg ztg 14685740 3月 22 18:54 msyhbd.ttf
-rwxr-xr-x. 1 ztg ztg 14685740 3月 22 18:54 msyh.ttf
[ztg@localhost .fonts]$ su -c 'mkfontscale'
密码:
[ztg@localhost .fonts]$ su -c 'mkfontdir'
密码:
[ztg@localhost .fonts]$ su -c 'fc-cache -fv'
密码:
/usr/share/fonts: caching, new cache contents: 0 fonts, 29 dirs
/usr/share/fonts/abyssinica: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/bitmap: caching, new cache contents: 32 fonts, 0 dirs
/usr/share/fonts/cjkuni-ukai: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/cjkuni-uming: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/default: caching, new cache contents: 0 fonts, 2 dirs
/usr/share/fonts/default/Type1: caching, new cache contents: 35 fonts, 0 dirs
/usr/share/fonts/default/ghostscript: caching, new cache contents: 17 fonts, 0 dirs
/usr/share/fonts/dejavu: caching, new cache contents: 21 fonts, 0 dirs
/usr/share/fonts/jomolhari: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/kacst: caching, new cache contents: 15 fonts, 0 dirs
/usr/share/fonts/khmeros: caching, new cache contents: 3 fonts, 0 dirs
/usr/share/fonts/liberation: caching, new cache contents: 12 fonts, 0 dirs
/usr/share/fonts/lklug: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/lohit-assamese: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/lohit-bengali: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/lohit-gujarati: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/lohit-hindi: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/lohit-kannada: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/lohit-maithili: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/lohit-marathi: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/lohit-oriya: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/lohit-punjabi: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/lohit-tamil: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/lohit-telugu: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/opensymbol: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/paktype: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/smc: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/fonts/stix: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/thai-scalable: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/un-core: caching, new cache contents: 2 fonts, 0 dirs
/usr/share/fonts/vlgothic: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/X11/fonts/Type1: skipping, no such directory
/usr/share/X11/fonts/TTF: skipping, no such directory
/usr/local/share/fonts: skipping, no such directory
/root/.fonts: skipping, no such directory
/var/cache/fontconfig: cleaning cache directory
/root/.fontconfig: not cleaning non-existent cache directory
fc-cache: succeeded
[ztg@localhost .fonts]$
然后,
系统——>首选项——>外观,“字体”设置雅黑就OK了