首先,我们找到windows/fonts这个目录。
1. 拷贝windows的fonts目录下simsun.ttc simhei.ttf到/usr/share/fonts/zh_CN/TrueType/
2. 修改/etc/fonts/local.conf
加入以下内容:
代码: |
<match target="pattern"> <test name="family"> <string>SimSun</string> </test> <test name="weight" compare="more_eq"> <const>bold</const> </test> <edit name="family" mode="assign"> <string>SimHei</string> </edit> </match> |
local.conf应该几乎是空的, 你应该知道要加在<fontconfig>与</fontconfig>之间吧.......
3. 在linux的菜单里面选择“首选项”===》“字体”====》simsun和simhei都在这里可以看到了吧.....(不过,好像你不加上面的代码好像也可以找到......)