Linux Mint中文字体模糊

早过忘川 提交于 2019-12-04 22:37:39

习惯了WinXP的字体,总不习惯Linux那模糊的中文,还是XP的锐利字体比较合适我。

先安装字体
        SimSun(可用文泉驿的开源点阵字体WenQuanYi Bitmap Song替代)
        DejaVu Sans
        Droid Sans
        DejaVu Serif
        Droid Serif
        DejaVu Sans Mono
        Droid Sans Mono

然后Ctrl+Alt+T调出终端,输入

sudo gedit /etc/fonts/conf.d/50-user.conf

原内容如下

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
	<!-- Load per-user customization file -->
	<include ignore_missing="yes" prefix="xdg">fontconfig/conf.d</include>
	<include ignore_missing="yes" prefix="xdg">fontconfig/fonts.conf</include>
	<!-- the following elements will be removed in the future -->
	<include ignore_missing="yes" deprecated="yes">~/.fonts.conf.d</include>
	<include ignore_missing="yes" deprecated="yes">~/.fonts.conf</include>
</fontconfig>


将第9行中的第二个yes改为no

<include ignore_missing="yes" deprecated="no">~/.fonts.conf</include>
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
	<!-- Load per-user customization file -->
	<include ignore_missing="yes" prefix="xdg">fontconfig/conf.d</include>
	<include ignore_missing="yes" prefix="xdg">fontconfig/fonts.conf</include>
	<!-- the following elements will be removed in the future -->
	<include ignore_missing="yes" deprecated="yes">~/.fonts.conf.d</include>
	<include ignore_missing="yes" deprecated="no">~/.fonts.conf</include>
</fontconfig>

接着终端输入

gedit ~/.fonts.conf

加入以下内容

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- created by WenQuanYi FcDesigner v0.5 -->
<match>
	<test name="family"><string>sans-serif</string></test>
	<edit name="family" mode="prepend" binding="strong">
		<string>SimSun</string>
		<string>DejaVu Sans</string>
		<string>Droid Sans</string>
	</edit>
</match>
<match>
	<test name="family"><string>serif</string></test>
	<edit name="family" mode="prepend" binding="strong">
		<string>DejaVu Serif</string>
		<string>Droid Serif</string>
		<string>SimSun</string>
	</edit>
</match>
<match>
	<test name="family"><string>monospace</string></test>
	<edit name="family" mode="prepend" binding="strong">
		<string>DejaVu Sans Mono</string>
		<string>Droid Sans Mono</string>
		<string>SimSun</string>
	</edit>
</match>
</fontconfig>

保存即生效

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!