分页: 1 / 1

Firefox浏览部分网页字体模糊的解决方案及字体美化方案说明

发表于 : 2007-05-21 2:42
hsmwrv
1. 关于Firefox

代码: 全选

$sudo gedit /etc/firefox/firefoxrc
复制以下内容。

代码: 全选

MOZ_DISABLE_PANGO=1
保存,退出,重新登录即可。

提示:以上解决方案会关闭Firefox自带的AA。

2. 字体美化方案及说明
强烈建议阅读原贴:http://www.linuxsir.org/bbs/showthread.php?t=266659
喜欢雅黑的话参考这一贴:http://www.linuxsir.org/bbs/showthread.php?t=269312

提示:以上两个方案的部分代码中有错误,例如:

代码: 全选

<edit name="hintstyle" mode="assign">
        <const>hintfull</const>
</edit>
"hintfull"是"hintstyle"属性(property)的一个参数(constant),而"hintfull"这个参数本身有一个数值(value)为"1"。上述的例子中原作者直接把参数赋予了属性,但正确的方法应该是把参数的数值赋予属性。同时,指定参数的数值的元素(element)也应该由<const>改为相应的<int>。所以上述的代码应改为:

代码: 全选

<edit name="hintstyle" mode="assign">
        <int>1</int>
</edit>
完整的属性列表可以参照以下链接中"Font Properties"部分。

http://fontconfig.org/fontconfig-user.html

其中凡是"Type"为"Int"的"Property"(属性),在修改的时候都应该使用参数的数值而不是参数本身。参数对应的数值(value)可以在上述链接中的"<const>"部分找到,而用于指定参数的数值的元素则是<int>。具体示例如下:

代码: 全选

<edit name="property" mode="assign">
        <int>value</int>
</edit>
3. 关于language-selector.conf
3.1 这个文件没有没关系,根据情况选择下列解决方案。

3.2 如果只有一个用户或者只希望把字体美化方案应用于一个用户:

代码: 全选

gedit ~/.fonts.conf
复制或编写方案内容,保存,退出,重新登录。

3.3 如果希望把方案应用于所有用户:

代码: 全选

sudo gedit /etc/fonts/local.conf
粘贴或编写方案内容,保存,退出。

代码: 全选

sudo gedit /etc/fonts/fonts.conf
找到下面这几行代码:

代码: 全选

<!--
	Load local customization files, but don't complain
	if there aren't any
-->
<include ignore_missing="yes">conf.d</include>
<include ignore_missing="yes">local.conf</include>
如果找不到上述代码中最后一行,复制下面这行代码:

代码: 全选

<include ignore_missing="yes">local.conf</include>
粘贴到

代码: 全选

<include ignore_missing="yes">conf.d</include>
之下。保存,退出,重新登录。

发表于 : 2007-05-21 6:55
zengsun
好贴!收藏

发表于 : 2007-05-23 10:37
tintin365
~/.font.conf貌似是kde专用的配置文件。

Re: Firefox浏览部分网页字体模糊的解决方案及字体美化方案说明

发表于 : 2009-09-21 20:30
portis21
edit name="hintstyle" mode="assign">
<const>hintfull</const>
</edit>

这个是没有错的。跟楼主提供的方法殊途同归。
const类型的hintfull就是int类型的1。赋值的时候只要类型没错就可以了。

Re: Firefox浏览部分网页字体模糊的解决方案及字体美化方案说明

发表于 : 2009-09-21 20:40
hcym
gedit ~/.fonts.conf
笔记,回头试试