OpenOffice的字体有的救吗?!
-
- 帖子: 117
- 注册时间: 2006-02-26 19:04
- gnix_oag
- 帖子: 1994
- 注册时间: 2005-05-19 18:38
- 来自: 湖南永州
- 联系:
-
- 帖子: 117
- 注册时间: 2006-02-26 19:04
- gnix_oag
- 帖子: 1994
- 注册时间: 2005-05-19 18:38
- 来自: 湖南永州
- 联系:
-
- 帖子: 11
- 注册时间: 2006-09-18 22:13
一个临时解决方案
这个问题可以通过修改/etc/fonts/font.conf来临时解决。
大致的方法是控制不同字号的显示方式,比如Arial, Times New Roman, Courier New等字体在小于等于14号,
,中文的字体在小于等于20号时都用非AA的方式来显示。(见下面用红色标记出的部分)
修改完之后我可以将界面的字体设为Arial 9号,但AA,Hinting等选项仍旧保持选中。这样的话,除了上面指定的字体及字号外其他的还用AA显示。这也保证了在Openoffice中即便使用Arial, Times等字体时,他们也可以不产生毛刺。之所以能够这样,是因为同样的字号在gnome和OO中显示出来的大小可以是不一样的。
具体的效果见附件。
大致的方法是控制不同字号的显示方式,比如Arial, Times New Roman, Courier New等字体在小于等于14号,
,中文的字体在小于等于20号时都用非AA的方式来显示。(见下面用红色标记出的部分)
- <match target="font" >
<test name="family" compare="contains" >
<string>Song</string>
<string>Sun</string>
<string>Kai</string>
<string>Ming</string>
</test>
<edit name="globaladvance">
<bool>false</bool>
</edit>
<edit name="spacing">
<int>0</int>
</edit>
<edit name="hinting">
<bool>true</bool>
</edit>
<edit name="autohint">
<bool>false</bool>
</edit>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<test name="pixelsize" compare="less_eq">
<int>20</int>
</test>
<edit name="antialias" mode="assign" >
<bool>false</bool>
</edit>
</match>
<match target="font" >
<test name="family" compare="contains" >
<string>Arial</string>
<string>Times</string>
<string>Courier</string>
</test>
<edit name="globaladvance">
<bool>false</bool>
</edit>
<edit name="spacing">
<int>0</int>
</edit>
<edit name="hinting">
<bool>true</bool>
</edit>
<edit name="autohint">
<bool>false</bool>
</edit>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<test name="pixelsize" compare="less_eq">
<int>14</int>
</test>
<edit name="antialias" mode="assign" >
<bool>false</bool>
</edit>
</match>
修改完之后我可以将界面的字体设为Arial 9号,但AA,Hinting等选项仍旧保持选中。这样的话,除了上面指定的字体及字号外其他的还用AA显示。这也保证了在Openoffice中即便使用Arial, Times等字体时,他们也可以不产生毛刺。之所以能够这样,是因为同样的字号在gnome和OO中显示出来的大小可以是不一样的。
具体的效果见附件。
-
- 帖子: 117
- 注册时间: 2006-02-26 19:04
Re: 一个临时解决方案
谢谢你的回复,试过了你的脚本,似乎对我的系统不起左右。lex.de 写了:这个问题可以通过修改/etc/fonts/font.conf来临时解决。
大致的方法是控制不同字号的显示方式,比如Arial, Times New Roman, Courier New等字体在小于等于14号,
,中文的字体在小于等于20号时都用非AA的方式来显示。(见下面用红色标记出的部分)
需要说明的是,我把这段代码直接插入到/etc/fonts/fonts.conf中。这并不是一个安全的方式,起码更新系统后这个文件有可能被覆盖掉。我只是为了省事而已。
- <match target="font" >
<test name="family" compare="contains" >
<string>Song</string>
<string>Sun</string>
<string>Kai</string>
<string>Ming</string>
</test>
<edit name="globaladvance">
<bool>false</bool>
</edit>
<edit name="spacing">
<int>0</int>
</edit>
<edit name="hinting">
<bool>true</bool>
</edit>
<edit name="autohint">
<bool>false</bool>
</edit>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<test name="pixelsize" compare="less_eq">
<int>20</int>
</test>
<edit name="antialias" mode="assign" >
<bool>false</bool>
</edit>
</match>
<match target="font" >
<test name="family" compare="contains" >
<string>Arial</string>
<string>Times</string>
<string>Courier</string>
</test>
<edit name="globaladvance">
<bool>false</bool>
</edit>
<edit name="spacing">
<int>0</int>
</edit>
<edit name="hinting">
<bool>true</bool>
</edit>
<edit name="autohint">
<bool>false</bool>
</edit>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<test name="pixelsize" compare="less_eq">
<int>14</int>
</test>
<edit name="antialias" mode="assign" >
<bool>false</bool>
</edit>
</match>
修改完之后我可以将界面的字体设为Arial 9号,但AA,Hinting等选项仍旧保持选中。这样的话,除了上面指定的字体及字号外其他的还用AA显示。这也保证了在Openoffice中即便使用Arial, Times等字体时,他们也可以不产生毛刺。之所以能够这样,是因为同样的字号在gnome和OO中显示出来的大小可以是不一样的。
具体的效果见附件。
我把sursong这个字体删除以后,中文字体改善了。但是英文字体仍旧不理想。
我使用的是下面这个美化方案http://forum.ubuntu.org.cn/viewtopic.php?t=19325&postdays=0&postorder=asc&start=0
其中在“首选项”-》字体中将“平滑”设置为“灰度“或者”次像素平滑“的话,oo里的字体没有问题,但是浏览网页的时候英文字体又不理想。如果设置为“无”的话,浏览网页没有任何问题,但是oo中的英文还是回有毛刺。不知道还有什么方法吗?谢谢
-
- 帖子: 11
- 注册时间: 2006-09-18 22:13
- dogfox
- 论坛版主
- 帖子: 5311
- 注册时间: 2006-09-02 14:18
- 来自: 汉桑城
- 联系: