FreeBSD系统下添加中文字体
1. 准备中文字体<br />Windows有不错的中文字体sim*.ttc<br />
<br />
2. 创建目录/usr/X11R/lib/X11/fonts/TrueType,将sim*.ttc拷贝到此目录下<br />
<br />
3. 刷新字体库<br />
#fc-cache -f -v<br />
<br />
4. 编辑/etc/X11/xorg.conf文件,在Section "Files"段添加:<br />
FontPath "/usr/X11R6/lib/X11/fonts/TrueType/" <br />
将其它的字体路径注掉,可以加快启动速度<br />
修改后为:<br />
Section "Files"<br />
RgbPath "/usr/X11R6/lib/X11/rgb"<br />
ModulePath "/usr/X11R6/lib/modules"<br />
FontPath "/usr/X11R6/lib/X11/fonts/TrueTpye/"<br />
Section "Module"<br />
Load "dbe"<br />
Load "dri"<br />
Load "extmod"<br />
Load "glx"<br />
#Load "record"<br />
Load "xtrap"<br />
#Load "freetype"<br />
#Load "type1"<br />
頁:
[1]