以下是我的配置文件。请忽略noto cjk字体英文部分相同这一点!
现在如果浏览日文wiki使用的是noto sans sc跟我想要的效果不一样。
请大神指点一下是哪里错了 谢谢大神
日文语言字体选择60-lang-ja-jp.conf
代码: 全选
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="pattern">
<test name="lang" compare="contains">
<string>ja</string>
</test>
<test qual="any" name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="append" binding="same">
<string>Noto Sans JP</string>
</edit>
</match>
</fontconfig>
中文语言字体选择60-lang-zh-cn.conf
代码: 全选
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="pattern">
<test name="lang" compare="contains">
<string>zh-cn</string>
</test>
<test qual="any" name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="append" binding="same">
<string>Noto Sans SC</string>
</edit>
</match>
</fontconfig>
代码: 全选
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="pattern">
<edit name="dpi" mode="assign" >
<double>102</double>
</edit>
</match>
<match target="font">
<edit name="embeddedbitmap">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hintstyle">
<const>hintslight</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="autohint">
<bool>true</bool>
</edit>
</match>
<match target="font">
<test compare="more" name="weight">
<const>medium</const>
</test>
<edit mode="assign" name="autohint">
<bool>false</bool>
</edit>
</match>
<!-- Default sans-serif font -->
<match target="pattern">
<test qual="any" name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Source Sans Pro</string>
</edit>
</match>
<!-- Default serif font -->
<match target="pattern">
<test qual="any" name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Source Serif Pro</string>
</edit>
</match>
<!-- Default monospace font -->
<match target="pattern">
<test qual="any" name="family">
<string>monospace</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Source Code Pro</string>
</edit>
</match>
<dir>~/.fonts</dir>
</fontconfig>