1. 浏览器中的字体
1) 将windows中的 simhei.ttf, tahoma.ttf, simsun.ttc, tahomabd.ttf 拷贝到 /usr/ports/distfiles/msttf/ 中
2) 在 /usr/ports/chinese/msttf/ 中 make install clean
3) 在浏览器中选择字体 simsun
4) 在 xorg.conf 中添加 font path
2. xterm中的字体
在 .Xdefaults 文件中添加:
xterm*font: -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso8859-1
xterm*wideFont: -aliasmisc-simsun-medium-r-normal-*-18-180-0-0-p-180-iso10646-1
3. 去掉反锯齿
1) 在 /usr/local/etc/fonts/ 中创建一个文件 local.conf
2) 在 local.conf 中添加以下内容:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<test name="size" compare="less">
<double>32</double>
</test>
<edit name="antialias" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="pixelsize" compare="less" qual="any">
<double>32</double>
</test>
<edit name="antialias" mode="assign">
<bool>false</bool>
</edit>
</match>
</fontconfig>
4. shutdown -r now