Update fontconfig: merge config for source han sans

This commit is contained in:
rydesun 2021-02-10 19:09:00 +08:00
parent 2c65496cd2
commit 523c04bc9f
4 changed files with 60 additions and 70 deletions

View file

@ -1,53 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<match target="pattern">
<test name="lang">
<string>zh-HK</string>
</test>
<test name="family">
<string>Source Han Sans HW SC</string>
</test>
<edit name="family" binding="strong">
<string>Source Han Sans HW HC</string>
</edit>
</match>
<match target="pattern">
<test name="lang">
<string>zh-TW</string>
</test>
<test name="family">
<string>Source Han Sans HW SC</string>
</test>
<edit name="family" binding="strong">
<string>Source Han Sans HW TC</string>
</edit>
</match>
<match target="pattern">
<test name="lang">
<string>ja</string>
</test>
<test name="family">
<string>Source Han Sans HW SC</string>
</test>
<edit name="family" binding="strong">
<string>Source Han Sans HW</string>
</edit>
</match>
<match target="pattern">
<test name="lang">
<string>ko</string>
</test>
<test name="family">
<string>Source Han Sans HW SC</string>
</test>
<edit name="family" binding="strong">
<string>Source Han Sans HW K</string>
</edit>
</match>
</fontconfig>

View file

@ -51,4 +51,52 @@
</edit>
</match>
<match target="pattern">
<test name="lang">
<string>zh-HK</string>
</test>
<test name="family">
<string>Source Han Sans HW SC</string>
</test>
<edit name="family" binding="strong">
<string>Source Han Sans HW HC</string>
</edit>
</match>
<match target="pattern">
<test name="lang">
<string>zh-TW</string>
</test>
<test name="family">
<string>Source Han Sans HW SC</string>
</test>
<edit name="family" binding="strong">
<string>Source Han Sans HW TC</string>
</edit>
</match>
<match target="pattern">
<test name="lang">
<string>ja</string>
</test>
<test name="family">
<string>Source Han Sans HW SC</string>
</test>
<edit name="family" binding="strong">
<string>Source Han Sans HW</string>
</edit>
</match>
<match target="pattern">
<test name="lang">
<string>ko</string>
</test>
<test name="family">
<string>Source Han Sans HW SC</string>
</test>
<edit name="family" binding="strong">
<string>Source Han Sans HW K</string>
</edit>
</match>
</fontconfig>

View file

@ -1,17 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<match target="pattern">
<test name="prgname" compare="not_eq">
<string>chrome</string>
</test>
<test name="family" compare="contains">
<string>Source Han Sans HW</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Iosevka Custom</string>
</edit>
</match>
</fontconfig>

View file

@ -17,4 +17,16 @@
</edit>
</match>
<match target="pattern">
<test name="prgname" compare="not_eq">
<string>chrome</string>
</test>
<test name="family" compare="contains">
<string>Source Han Sans HW</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Iosevka Custom</string>
</edit>
</match>
</fontconfig>