我经常收到以下错误。(例如:运行等命令/应用程序时zenity
。firefox
)
Fontconfig warning: "/etc/fonts/conf.d/90-fonts-unfonts-core.conf", line 11: Having multiple values in <test> isn't supported and may not work as expected
以下是文件内容/etc/fonts/conf.d/90-fonts-unfonts-core.conf
:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<test name="family" qual="any">
<string>은 바탕</string><string>UnBatang</string>
<string>은 돋움</string><string>UnDotum</string>
<string>은 궁서</string><string>UnGungseo</string>
<string>은 필기</string><string>UnPilgi</string>
<string>은 그래픽</string><string>UnGraphic</string>
</test>
<edit name="antialias" mode="assign" binding="strong"><bool>true</bool></edit>
<edit name="hinting" mode="assign" binding="strong"><bool>false</bool></edit>
<edit name="autohint" mode="assign" binding="strong"><bool>true</bool></edit>
<edit name="hintstyle" mode="assign" binding="strong"><const>hintslight</const></edit>
</match>
</fontconfig>
如何解决?
答案1
我还没有测试过这个!
这是根据您的错误消息做出的猜测。由于它抱怨<test></test>
部分不能有多个值,所以您可能需要做的就是将其拆分为多个值:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<test name="family" qual="any">
<string>은 바탕</string>
</test>
<test name="family" qual="any">
<string>UnBatang</string>
</test>
<test name="family" qual="any">
<string>은 돋움</string>
</test>
<test name="family" qual="any">
<string>UnDotum</string>
</test>
<test name="family" qual="any">
<string>은 궁서</string>
</test>
<test name="family" qual="any">
<string>UnGungseo</string>
</test>
<test name="family" qual="any">
<string>은 필기</string>
</test>
<test name="family" qual="any">
<string>UnPilgi</string>
</test>
<test name="family" qual="any">
<string>은 그래픽</string>
</test>
<test name="family" qual="any">
<string>UnGraphic</string>
</test>
<edit name="antialias" mode="assign" binding="strong"><bool>true</bool></edit>
<edit name="hinting" mode="assign" binding="strong"><bool>false</bool></edit>
<edit name="autohint" mode="assign" binding="strong"><bool>true</bool></edit>
<edit name="hintstyle" mode="assign" binding="strong"><const>hintslight</const></edit>
</match>
</fontconfig>