ubuntu 11.04 字体字体表现不统一

系统字体配置、中文显示和输入法问题
回复
头像
Crazier
帖子: 1051
注册时间: 2007-09-23 17:06
联系:

ubuntu 11.04 字体字体表现不统一

#1

帖子 Crazier » 2011-11-05 17:41

系统是11.04, 为了让提示是英文的,对local 进行了修改,Gnome原生的程序表现很好,很清晰:
screenshot3.png
screenshot3.png (17.59 KiB) 查看 1234 次
gedit 内的文字很清晰;
可是那些非Gnome原生的程序的菜单里显示的字体还是表现的不太清晰,有些模糊,如下图
但是Vbox的菜单却是模糊的:
Selection_009.jpeg
请问该如何解决?

locale如下:
locale
LANG=zh_CN.UTF-8
LANGUAGE=en
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES=en_US.UTF-8
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=
在“Language Support”里只设置了英文,中文是放在最下面的。 System ——》 Preference——》Appearance里都设置的是 文泉驿微米黑 ,
为了让整个系统都使用文泉驿微米黑 ,/etc/fonts/local.conf
配置文件如下:
<fontconfig>
<match target="pattern">
<test qual="any" name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Ubuntu</string>
<string>WenQuanYi Micro Hei</string>
<string>AR PL UMing CN</string>
<string>AR PL ShanHeiSun Uni</string>
<string>Bitstream Vera Serif</string>
<string>DejaVu Serif</string>
<string>AR PL UKai CN</string>
<string>AR PL ZenKai Uni</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Ubuntu</string>
<string>WenQuanYi Micro Hei</string>
<string>Bitstream Vera Sans</string>
<string>DejaVu Sans</string>
<string>WenQuanYi Zen Hei</string>
<string>AR PL UMing CN</string>
<string>AR PL ShanHeiSun Uni</string>
<string>AR PL UKai CN</string>
<string>AR PL ZenKai Uni</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>monospace</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>WenQuanYi Micro Hei Mono</string>
<string>Bitstream Vera Sans Mono</string>
<string>DejaVu Sans Mono</string>
<string>WenQuanYi Zen Hei</string>
<string>AR PL UMing CN</string>
<string>AR PL ShanHeiSun Uni</string>
<string>AR PL UKai CN</string>
<string>AR PL ZenKai Uni</string>
</edit>
</match>
</fontconfig>
头像
自由建客
帖子: 13468
注册时间: 2008-07-30 23:21
系统: Debian stable AMD64

Re: ubuntu 11.04 字体字体表现不统一

#2

帖子 自由建客 » 2011-11-05 19:23

代码: 全选

		<edit name="hintstyle"><const>hintfull</const></edit>
		<edit name="lcdfilter"><const>lcdlight</const></edit>
几个参数值都试试, qt 受该影响,但 gtk 无视之。
头像
Crazier
帖子: 1051
注册时间: 2007-09-23 17:06
联系:

Re: ubuntu 11.04 字体字体表现不统一

#3

帖子 Crazier » 2011-11-05 20:50

自由建客 写了:

代码: 全选

		<edit name="hintstyle"><const>hintfull</const></edit>
		<edit name="lcdfilter"><const>lcdlight</const></edit>
几个参数值都试试, qt 受该影响,但 gtk 无视之。
这些内容应该加在fonts.conf的哪个位置
头像
自由建客
帖子: 13468
注册时间: 2008-07-30 23:21
系统: Debian stable AMD64

Re: ubuntu 11.04 字体字体表现不统一

#4

帖子 自由建客 » 2011-11-05 22:33

我的

代码: 全选

	<!-- 全局 -->
	<match target="font">
		<edit name="antialias"><bool>true</bool></edit>
		<edit name="autohint"><bool>false</bool></edit>
		<edit name="hinting"><bool>true</bool></edit>
		<edit name="hintstyle"><const>hintfull</const></edit>
	</match>
	<match target="font">
		<test name="pixelsize" compare="less_eq">
			<double>16</double>
		</test>
		<edit name="rgba"><const>rgb</const></edit>
		<edit name="lcdfilter"><const>lcdlight</const></edit>
	</match>
那两个参数的值你要自己去试, gtk 虽不可控,但 qt 是可控的。
回复