LinuxSir.cn,穿越时空的Linuxsir!

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

俺解决opera中文显示问题的方法

[复制链接]
发表于 2007-2-9 12:27:25 | 显示全部楼层 |阅读模式
俺装了个CS4
安装完成后,装个wqy字体(windows字体/uming/ukai没装)
按照wqy的安装说明,链接一个85-wqy-bitmapsong.conf到/etc/fonts/conf.d下边
即可完美的显示中文了,但是还有一个小小的问题
用firefox浏览linuxsir/linuxfans等的网页是正常的,而用opera的话则存在中文字体间隔过宽问题
我在archlinux中则无此种现象,对比了一下/etc/fonts目录,从archlinux中copy了90-synthetic.conf后显示linuxsir页面完美。
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Artificial oblique for fonts without an italic or oblique version
-->

        <match target="font">
                <!-- check to see if the font is roman -->
                <test name="slant">
                        <const>roman</const>
                </test>
                <!-- check to see if the pattern requested non-roman -->
                <test target="pattern" name="slant" compare="not_eq">
                        <const>roman</const>
                </test>
                <!-- multiply the matrix to slant the font -->
                <edit name="matrix" mode="assign">
                        <times>
                                <name>matrix</name>
                                <matrix><double>1</double><double>0.2</double>
                                        <double>0</double><double>1</double>
                                </matrix>
                        </times>
                </edit>
                <!-- pretend the font is oblique now -->
                <edit name="slant" mode="assign">
                        <const>oblique</const>
                </edit>
                <!-- and disable embedded bitmaps for artificial oblique -->
                <edit name="embeddedbitmap" mode="assign">
                        <bool>false</bool>
                </edit>
        </match>

<!--
Synthetic emboldening for fonts that do not have bold face available
-->

        <match target="font">
                <!-- check to see if the font is just regular -->
                <test name="weight" compare="less_eq">
                        <const>medium</const>
                </test>
                <!-- check to see if the pattern requests bold -->
                <test target="pattern" name="weight" compare="more">
                        <const>medium</const>
                </test>
                <!--
                  set the embolden flag
                  needed for applications using cairo, e.g. gucharmap, gedit, ...
                -->
                <edit name="embolden" mode="assign">
                        <bool>true</bool>
                </edit>
                <!--
                 set weight to bold
                 needed for applications using Xft directly, e.g. Firefox, ...
                -->
                <edit name="weight" mode="assign">
                        <const>bold</const>
                </edit>
        </match>
</fontconfig>

捎带的:
cs4添加发行介质 urpmi.addmedia --distrib http://用户名:密码@downlo ... eServer4/rpms/i586/
update介质   urpmi.addmedia --update https://用户名:密码@downl ... dates/CS4/i586/RPMS with hdlist.cz
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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