编写一个文件 ,Arial替换成微软雅黑

1
2
3
4
5
6
7
8
9
10
11
12
13
<?xml version="1.0"?> 
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<include ignore_missing="no">fonts.conf</include>
<match target="pattern">
<test qual="any" name="family">
<string>Arial</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Microsoft Yahei Regular</string>
</edit>
</match>
</fontconfig>

在调用steam之前,先设置个环境变量

启动Steam ,中文就不会显示为空白了

1
$ export FONTCONFIG_FILE=/usr/local/steam/steam-fontconfig.conf