[分享] 宋体的显示

系统字体配置、中文显示和输入法问题
回复
bob
帖子: 79
注册时间: 2006-10-19 20:19

[分享] 宋体的显示

#1

帖子 bob » 2008-03-18 10:55

在我的显示器上,7.10显示宋体总是有问题。在别人CRT的显示器上效果跟Win下差不多,非常好。不知道是我三星液晶显示器的问题还是我显卡的问题。

网上搜了很多帖子,都是把宋体的英文部分替换为其他字体,而我恰恰很喜欢非粗体的宋体英文。琢磨很久后,在
/etc/fonts/language-selector.conf 里添加

代码: 全选

	<match target="font">
		<test name="family" compare="contains">
			<string>宋体</string>
			<string>新宋体</string>
			<string>SimSun</string>
			<string>NSimSun</string>
		</test>
		<test name="pixelsize" compare="less_eq" target="pattern">
			<double>18</double>
		</test>
		<test name="weight" compare="less_eq" target="pattern">
			<const>medium</const>
		</test>
		<edit name="hinting">
			<bool>false</bool>
		</edit>
		<edit name="hintstyle">
			<const>none</const>
		</edit>
		<edit name="autohint">
			<bool>false</bool>
		</edit>
		<edit name="antialias" mode="assign">
			<bool>false</bool>
		</edit>
	</match>
让宋体的非粗体不做任何渲染,显示可以和win一样。粗体仍然做渲染,效果更好。
喜欢宋体且其显示有问题的朋友可以试试。
回复