页次: 1
我想让宋体能够匹配到Noto Serif CJK SC,然后在.config/fontconfig/fonts.conf中是这么写的
<alias binding="strong">
<family>Noto Serif CJK</family>
<prefer>
<family>Noto Serif CJK SC</family>
<family>Noto Serif CJK TC</family>
<family>Noto Serif CJK JP</family>
<family>Noto Serif CJK KR</family>
</prefer>
</alias>
<alias binding="strong">
<family>宋体</family>
<prefer>
<family>Noto Serif CJK</family>
</prefer>
</alias>
<alias binding="strong">
<family>新宋体</family>
<prefer>
<family>Noto Serif CJK</family>
</prefer>
</alias>
<alias binding="strong">
<family>SimSun</family>
<prefer>
<family>Noto Serif CJK</family>
</prefer>
</alias>
然后结果SimSun匹配到了Noto Serif,宋体匹配到了Noto Sans。
❯ fc-match "SimSun"
NotoSerif-Regular.ttf: "Noto Serif" "Regular"
fc-match "宋体"
NotoSans-Regular.ttf: "Noto Sans" "Regular"
我哪里有错误吗?
最近编辑记录 ywxt (2023-01-10 15:51:08)
离线
把最上边 Noto Serif CJK 放到最下边试试?
离线
把最上边 Noto Serif CJK 放到最下边试试?
就好了,謝謝仙子。
离线
页次: 1