1 转到字符界面,关闭X。命令:sudo /etc/init.d/gdm stop
2 备份原来的/usr/lib/libXft.so.2.1.1,用附件里的文件替换。
3 先备份原来的文件,然后修改/etc/fonts/font.conf 或者 /etc/fonts/local.conf (推荐),加入代码里的内容:
提示:
如果你觉得在字符界面下编辑文件很不适应,那么:
先跳到第 4 步
然后跳到这一步,用gedit 等你喜欢的编辑器来修改,
然后注销,重新登陆就可以了。
代码: 全选
<!--
Artificial oblique for fonts without an italic or oblique version
-->
<match target="font">
<!-- check to see if the font is roman -->
<test name="slant">
<const>roman</const>
</test>
<!-- check to see if the pattern requested non-roman -->
<test target="pattern" name="slant" compare="not_eq">
<const>roman</const>
</test>
<!-- multiply the matrix to slant the font -->
<edit name="matrix" mode="assign">
<times>
<name>matrix</name>
<matrix><double>1</double><double>0.2</double>
<double>0</double><double>1</double>
</matrix>
</times>
</edit>
<!-- pretend the font is oblique now -->
<edit name="slant" mode="assign">
<const>oblique</const>
</edit>
</match>
<!--
Add by firefly@firefly.idv.tw
Artificial bold for fonts without a bold version.
-->
<match target="font">
<!-- check to see if the pattern requested > "medium" -->
<test target="pattern" name="weight" compare="more">
<const>medium</const>
</test>
<!-- pretend the font is bold now -->
<edit name="weight" mode="assign">
<const>bold</const>
</edit>
</match>
在hoary上经过测试。但如果有问题,还原备份。