Linux Mint中文字體模糊

習慣了WinXP的字體,總不習慣Linux那模糊的中文,仍是XP的銳利字體比較合適我。 shell

先安裝字體
        SimSun(可用文泉驛的開源點陣字體WenQuanYi Bitmap Song替代)
        DejaVu Sans
        Droid Sans
        DejaVu Serif
        Droid Serif
        DejaVu Sans Mono
        Droid Sans Mono 字體

而後Ctrl+Alt+T調出終端,輸入
spa

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

原內容以下 code

<?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 xml

<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>

接着終端輸入 element

gedit ~/.fonts.conf

加入如下內容 rem

<?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>

保存即生效 string

相關文章
相關標籤/搜索