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

系统字体配置、中文显示和输入法问题
回复
hsmwrv
帖子: 71
注册时间: 2007-04-27 11:33

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

#1

帖子 hsmwrv » 2007-05-21 2:42

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>
之下。保存,退出,重新登录。
上次由 hsmwrv 在 2007-05-22 13:19,总共编辑 1 次。
zengsun
帖子: 334
注册时间: 2005-05-17 14:45

#2

帖子 zengsun » 2007-05-21 6:55

好贴!收藏
现在还是在学java!
tintin365
帖子: 88
注册时间: 2007-04-21 12:06

#3

帖子 tintin365 » 2007-05-23 10:37

~/.font.conf貌似是kde专用的配置文件。
portis21
帖子: 131
注册时间: 2008-03-28 23:06

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

#4

帖子 portis21 » 2009-09-21 20:30

edit name="hintstyle" mode="assign">
<const>hintfull</const>
</edit>

这个是没有错的。跟楼主提供的方法殊途同归。
const类型的hintfull就是int类型的1。赋值的时候只要类型没错就可以了。
头像
hcym
帖子: 15634
注册时间: 2007-05-06 2:46

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

#5

帖子 hcym » 2009-09-21 20:40

gedit ~/.fonts.conf
笔记,回头试试
回复