LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 759|回复: 4

[求助]local.conf 的字体替换问题

[复制链接]
发表于 2008-3-18 11:03:23 | 显示全部楼层 |阅读模式
我发现我的字体替换出了问题,以前一直认为是openoffice的问题,今天突然发现在替换NSimSun的英文字体时,连中文字体部份也被换掉了。我想可能是因为fontconfig的升级原因,因为以前是正常的。

请各位帮忙看看,谢谢!

下面是我的相关配置:
  1. <!-- Replace Simsun's English chars with Times New Roman -->
  2.         <match target="pattern">
  3.                 <test compare="eq" name="family" qual="any">
  4.                         <string>SimSun</string>
  5.                 </test>
  6.                 <edit mode="prepend_first" binding="strong" name="family">
  7.                         <string>Times New Roman</string>
  8.                 </edit>
  9.         </match>
  10. <!-- Replace NSimsun's English chars with Times New Roman -->
  11.         <match target="pattern">
  12.                 <test compare="eq" name="family" qual="any">
  13.                         <string>NSimSun</string>
  14.                 </test>
  15.                 <edit mode="prepend_first" binding="strong" name="family">
  16.                         <string>Times New Roman</string>
  17.                 </edit>
  18.         </match>
复制代码
发表于 2008-3-18 12:02:12 | 显示全部楼层
这种问题要上图
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-3-18 13:07:49 | 显示全部楼层
我刚刚看了fontconfig的手册,
有人这样
<edit mode="prepend_first" binding="strong" name="family">
也有人这样
<edit mode="prepend" binding="strong" name="family">
这两种方法在我这里没什么区别,问题是共同的。就是在openoffice-2.3.1中,只要不对宋体/新宋体进行英文字体替换就一都正常,菜单中的字体名称和文中的字体都正常显示。如图:no-english-replace-for-NSimSun.jpg
但如果进行上述替换,则菜单中字体无法显示,文中的字也无法显示。如图:with-english-replace-for-NSimSun.jpg。

而firefox对于上述两种情况均能正确处理。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2008-3-18 13:54:53 | 显示全部楼层
good!!
回复 支持 反对

使用道具 举报

发表于 2008-3-18 18:11:14 | 显示全部楼层
我现在用kde4,oo的字体真是看不下去……
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表