OpenOffice的字体有的救吗?!

系统字体配置、中文显示和输入法问题
回复
hookilah
帖子: 117
注册时间: 2006-02-26 19:04

OpenOffice的字体有的救吗?!

#1

帖子 hookilah » 2006-11-05 10:02

毛刺太严重的,菜单字体也很难看,不知道有什么解决的办法?!特别是英文的
附件
Screenshot-1.png
头像
gnix_oag
帖子: 1994
注册时间: 2005-05-19 18:38
来自: 湖南永州
联系:

#2

帖子 gnix_oag » 2006-11-05 10:10

OpenOffice.org 提供一个替换字体的功能。您可以用操作系统上安装的字体来替代 OpenOffice.org 屏幕显示及打印文档使用的字体。通过菜单命令“工具 - 选项 - OpenOffice.org - 替换字体”就可以设定。

要更改标准的 OpenOffice.org 使用界面的字体 Andale Sans UI ,采用另外一个字体,并设定替换字体的选项“自动”。
hookilah
帖子: 117
注册时间: 2006-02-26 19:04

#3

帖子 hookilah » 2006-11-05 10:31

gnix_oag 写了:OpenOffice.org 提供一个替换字体的功能。您可以用操作系统上安装的字体来替代 OpenOffice.org 屏幕显示及打印文档使用的字体。通过菜单命令“工具 - 选项 - OpenOffice.org - 替换字体”就可以设定。

要更改标准的 OpenOffice.org 使用界面的字体 Andale Sans UI ,采用另外一个字体,并设定替换字体的选项“自动”。
你指的是这样??没有改观啊。
附件
Screenshot-选项 - OpenOffice.org - 字体.png
头像
gnix_oag
帖子: 1994
注册时间: 2005-05-19 18:38
来自: 湖南永州
联系:

#4

帖子 gnix_oag » 2006-11-05 12:49

换其它的中文字体试试
头像
Truth
帖子: 76
注册时间: 2006-03-02 16:27

#5

帖子 Truth » 2006-11-05 20:12

只是替换界面显示字体
并没有替换其他字体
你需要设置默认使用的中文字体和英文字体
hookilah
帖子: 117
注册时间: 2006-02-26 19:04

#6

帖子 hookilah » 2006-11-06 9:17

gnix_oag 写了:换其它的中文字体试试
都试过了,界面效果并没有改善
头像
glade
帖子: 1383
注册时间: 2005-10-21 16:57

#7

帖子 glade » 2006-11-06 14:01

看上去没有开反锯齿
lex.de
帖子: 11
注册时间: 2006-09-18 22:13

我也遇到类似问题

#8

帖子 lex.de » 2006-11-06 22:26

我也遇到类似问题,但是还不知道如何解决。

我猜想当我们关闭AA功能的时候,其它gtk程序知道使用内嵌的bitmap字体。而openoffice的机制有所不同,所以显示就成这样了。
不知道openoffice的字体显示是通过什么控制的?
lex.de
帖子: 11
注册时间: 2006-09-18 22:13

一个临时解决方案

#9

帖子 lex.de » 2006-11-09 19:28

这个问题可以通过修改/etc/fonts/font.conf来临时解决。

大致的方法是控制不同字号的显示方式,比如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>
需要说明的是,我把这段代码直接插入到/etc/fonts/fonts.conf中。这并不是一个安全的方式,起码更新系统后这个文件有可能被覆盖掉。我只是为了省事而已。

修改完之后我可以将界面的字体设为Arial 9号,但AA,Hinting等选项仍旧保持选中。这样的话,除了上面指定的字体及字号外其他的还用AA显示。这也保证了在Openoffice中即便使用Arial, Times等字体时,他们也可以不产生毛刺。之所以能够这样,是因为同样的字号在gnome和OO中显示出来的大小可以是不一样的。


具体的效果见附件。
附件
Screenshot.png
hookilah
帖子: 117
注册时间: 2006-02-26 19:04

Re: 一个临时解决方案

#10

帖子 hookilah » 2006-11-28 23:45

lex.de 写了:这个问题可以通过修改/etc/fonts/font.conf来临时解决。

大致的方法是控制不同字号的显示方式,比如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>
需要说明的是,我把这段代码直接插入到/etc/fonts/fonts.conf中。这并不是一个安全的方式,起码更新系统后这个文件有可能被覆盖掉。我只是为了省事而已。

修改完之后我可以将界面的字体设为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中的英文还是回有毛刺。不知道还有什么方法吗?谢谢
lex.de
帖子: 11
注册时间: 2006-09-18 22:13

#11

帖子 lex.de » 2006-11-30 19:48

你重排过/etc/fonts/fonts.conf中serif, sans serif, monospace吗?
比如,
<alias>
<family>serif</family>
<prefer>
<family>Arial</family>
<family>Simsun</family>
...
头像
dogfox
论坛版主
帖子: 5311
注册时间: 2006-09-02 14:18
来自: 汉桑城
联系:

#12

帖子 dogfox » 2006-11-30 21:14

可以尝试修改定义字体,至于边框字体可以不管了
附件
Screenshot.png
全世界linux爱好者联合起来 !
hookilah
帖子: 117
注册时间: 2006-02-26 19:04

#13

帖子 hookilah » 2006-12-01 9:56

anyway.十分感谢各位,最终还是用雅黑来美化。啥问题都没有了:)
回复