弄些中文字體到系統(tǒng)里面去.
字體要放在這個(gè)文件夾里面
/usr/share/fonts/chinese/TrueType/復(fù)制到系統(tǒng)里面的字體
然后修改xorg.conf
下面是我的xorg.conf文件的字體設(shè)置部分
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
FontPath "在這加入你復(fù)制到系統(tǒng)里面的字體文件夾"
FontPath "在這加入你復(fù)制到系統(tǒng)里面的字體文件夾"
EndSection
然后執(zhí)行命令:
mkfontscale /usr/share/fonts/chinese/TrueType/復(fù)制到系統(tǒng)里面的字體
執(zhí)行命令以后
/usr/share/fonts/chinese/TrueType/
會(huì)生成一個(gè)
font.scale
你將這個(gè)文件另存為
font.dir
然后依次執(zhí)行命令:
xset fp+ /usr/share/fonts/chinese/TrueType/復(fù)制到系統(tǒng)里面的字體
xset fp rehash
原文:
http://linux.chinaunix.net/bbs/archiver/tid-896583.html