[问题]中英文斜体的倾斜程度不一致

系统字体配置、中文显示和输入法问题
回复
头像
FFFrog
帖子: 621
注册时间: 2006-05-12 23:28
来自: 江西乐平
送出感谢: 0
接收感谢: 1 次
联系:

[问题]中英文斜体的倾斜程度不一致

#1

帖子 FFFrog » 2007-12-30 17:46

我在language-selector.conf中配置了sans-serif、serif和monospace的字体替换。现在的效果基本上满意了,但有个奇怪的地方:中文斜体的倾斜程度比英文斜体要大得多,如我截图中所示。

而若是使用单独的中文字体,如华文中宋、微软雅黑的时候,斜体的倾斜程度却又没有这么大,很自然。

有没有办法通过配置language-selector.conf文件,单独调整sans-serif、serif和monospace里面中、英文斜体的倾斜程度呢?


附我的language-selector.conf文件内容:

代码: 全选

<fontconfig>
	<alias>
                <family>serif</family>
                <prefer>
                        <family>DejaVu Serif</family>
                        <family>STZhongsong</family>
                </prefer>
        </alias>
        <alias>
                <family>sans-serif</family>
                <prefer>
			<family>DejaVu Sans</family>
                        <family>Microsoft YaHei</family>
                </prefer>
        </alias>
        <alias>
                <family>monospace</family>
                <prefer>
                        <family>Monaco</family>
                        <family>Microsoft YaHei</family>
                </prefer>
        </alias>
        <match target="font" >
                <test name="family" compare="contains" >
                        <string>Song</string>
                        <string>Sun</string>
                        <string>Kai</string>
                        <string>Ming</string>
                </test> 
                <!-- check to see if the font is just regular -->
                <test name="weight" compare="less_eq">
                        <int>100</int>
		</test>
                <test compare="more_eq" target="pattern" name="weight" >
                        <int>180</int>
                </test>
                <edit mode="assign" name="embolden" >
                        <bool>true</bool>
                </edit>
	</match>
        <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>
        </match>
	
	<match target="pattern">
	   <test qual="any" name="family" compare="eq">
	      <string>sans-serif</string>
	   </test>
	   <edit name="family" mode="prepend" binding="strong">
	      <string>Microsoft YaHei</string></edit>
	   <edit name="family" mode="prepend_first" binding="strong">
	      <string>DejaVu Sans</string>
	   </edit>
	</match>
	<match target="pattern">
	   <test qual="any" name="family" compare="eq">
	      <string>sans-serif</string>
	   </test>
	   <edit name="family" mode="assign" binding="strong">
	      <string>DejaVu Sans</string>
	      <string>Microsoft YaHei</string>
	   </edit>
	</match>
	<match target="pattern">
	   <test name="family">
	      <string>DejaVu Sans</string>
	   </test>
	   <edit name="family" mode="append" binding="strong">
	      <string>Microsoft YaHei</string>
	   </edit>
	</match>
	
	<match target="pattern">
	   <test qual="any" name="family" compare="eq">
	      <string>serif</string>
	   </test>
	   <edit name="family" mode="prepend" binding="strong">
	      <string>STZhongsong</string></edit>
	   <edit name="family" mode="prepend_first" binding="strong">
	      <string>DejaVu Serif</string>
	   </edit>
	</match>
	<match target="pattern">
	   <test qual="any" name="family" compare="eq">
	      <string>serif</string>
	   </test>
	   <edit name="family" mode="assign" binding="strong">
	      <string>DejaVu Serif</string>
	      <string>STZhongsong</string>
	   </edit>
	</match>
	<match target="pattern">
	   <test name="family">
	      <string>DejaVu Serif</string>
	   </test>
	   <edit name="family" mode="append" binding="strong">
	      <string>STZhongsong</string>
	   </edit>
	</match>
	
	<match target="pattern">
	   <test qual="any" name="family" compare="eq">
	      <string>monospace</string>
	   </test>
	   <edit name="family" mode="prepend" binding="strong">
	      <string>Microsoft YaHei</string></edit>
	   <edit name="family" mode="prepend_first" binding="strong">
	      <string>Monaco</string>
	   </edit>
	</match>
	<match target="pattern">
	   <test qual="any" name="family" compare="eq">
	      <string>monospace</string>
	   </test>
	   <edit name="family" mode="assign" binding="strong">
	      <string>Monaco</string>
	      <string>Microsoft YaHei</string>
	   </edit>
	</match>
	<match target="pattern">
	   <test name="family">
	      <string>Monaco</string>
	   </test>
	   <edit name="family" mode="append" binding="strong">
	      <string>Microsoft YaHei</string>
	   </edit>
	</match>

</fontconfig>
附件
Dejea1.png
头像
darkt
帖子: 215
注册时间: 2007-09-21 18:24
送出感谢: 0
接收感谢: 0

#2

帖子 darkt » 2008-01-01 12:44

大哥啊,那是系统为了表示正在播放的歌曲特别加斜的。
头像
FFFrog
帖子: 621
注册时间: 2006-05-12 23:28
来自: 江西乐平
送出感谢: 0
接收感谢: 1 次
联系:

#3

帖子 FFFrog » 2008-01-01 14:00

我当然知道那是斜体了。你没看清楚我的意思。

我是说,这种用中英文字体混合而成的系统字体(sans serif、serif、monospace)中,在显示斜体时,中文比英文更斜,看起来不一致。
而单独用其中的中文字体(不选择sans serif而直接选择微软雅黑)时,它的斜体却又没有这么斜了。
回复

回到 “字体美化和中文支持”