LinuxSir.cn,穿越时空的Linuxsir!

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

Opera字体配置的问题

[复制链接]
发表于 2006-9-9 03:53:45 | 显示全部楼层 |阅读模式
用opera时 全部使用simsun
会出现一部分英文或者数字 很难看(如图)  请问应该如何解决

我的local.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- conf.d/myfont.conf -->
<fontconfig>
<dir>/usr/share/fonts</dir>
<dir>/usr/share/fonts/local</dir>
<dir>/usr/local/share/fonts</dir>
<dir>~/.fonts</dir>
<dir>/usr/X11R6/lib/X11/fonts</dir>

<match target="font">
       <test name="family">
                        <string>SimHei</string>
                        <string>SimSun</string>
                        <string>Tahoma</string>
       </test>
       <test name="pixelsize" compare="more_eq">
                        <double>1</double>
       </test>
       <test name="pixelsize" compare="less_eq">
                        <double>17</double>
       </test>
       <edit name="antialias">
                        <bool>false</bool>
       </edit>
       <edit name="hinting">
                        <bool>true</bool>
       </edit>
</match>
<!--
  English portion substitution
-->
     <match target="font" >
                <test name="family" >
                        <string>SimSun</string>
                        <string>SimHei</string>
                        <string>MingLiU</string>
                        <string>宋体</string>
                     
                </test>
                <edit name="family" mode="prepend" binding="strong" >
                        <string>Tahoma</string>
                </edit>
        </match>

<!--
      The dual-width Asian fonts (spacing=dual) are not rendered correctly,
      apparently FreeType forces all widths to match. Trying to disable the
      width forcing code by setting globaladvance=false alone doesn't  help.
      As a brute force workaround, also set spacing=proportional, i.e. handle
      them as proportional fonts:
-->
        <match target="font" >
                <test target="pattern" name="lang" compare="contains" >
                        <string>zh</string>
                        <string>ja</string>
                        <string>ko</string>
                </test>
                <test name="spacing" compare="eq">
                        <const>dual</const>
                </test>
                <edit name="spacing" mode="assign" >
                        <const>proportional</const>
                </edit>
                <edit name="globaladvance" mode="assign" >
                        <bool>false</bool>
                </edit>
        </match>
</fontconfig>

本帖子中包含更多资源

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

x
 楼主| 发表于 2006-9-9 03:56:51 | 显示全部楼层
这张图更加明显

本帖子中包含更多资源

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

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-11 12:37:28 | 显示全部楼层
没人用opera吗??
回复 支持 反对

使用道具 举报

发表于 2006-9-11 12:42:56 | 显示全部楼层
有用过 似乎比你的虚的更难看  所以就不用了。。。
回复 支持 反对

使用道具 举报

发表于 2006-9-11 13:01:39 | 显示全部楼层
<string>Tahoma</string>
把这里的tahoma改成别的看看,比如装一个DejaVu
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-12 08:55:43 | 显示全部楼层
Post by wd_afei
<string>Tahoma</string>
把这里的tahoma改成别的看看,比如装一个DejaVu


似乎倒不是Tahoma字体的问题 而是fontconfig的替换机制opera不认
换了别的字体还是一样的效果
回复 支持 反对

使用道具 举报

发表于 2006-9-12 09:09:42 | 显示全部楼层
装上kcontrol,然后配置kde字体,选择文泉驿字体,除了等宽选择dejavu sans mono外,应该效果就好了,没必要再用simsun了。
opera是用qt开发的,在gnome里是调不出它的字体效果的,同样的还有skype等。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-15 14:20:33 | 显示全部楼层
文泉驿的字体在终端下看还不错 但是用来浏览网页似乎有点。。。

现在的问题就是 SimSun的英文字体不好看,但是用fontconfig来替换Simsun的英文字体的方法对opera来说 它不承认

请问有没有 对应的可以使opera识别fontconfig里的替换的解决方法

或者有字体制作工具可以将Simsun的英文字体换掉?
回复 支持 反对

使用道具 举报

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

本版积分规则

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