Update fontconfig: use HarmonyOS Sans

This commit is contained in:
rydesun 2021-08-22 18:58:28 +08:00
parent 34e783dd09
commit 80d8ad9318
11 changed files with 58 additions and 375 deletions

View file

@ -18,7 +18,7 @@
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Sans CJK SC</string>
<string>HarmonyOS Sans SC</string>
<string>Noto Sans</string>
<string>Symbols Nerd Font</string>
<string>Twemoji</string>
@ -44,21 +44,29 @@
<string>monospace</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Sans Mono CJK SC</string>
<string>Iosevka Custom</string>
<string>HarmonyOS Sans SC</string>
<string>Symbols Nerd Font</string>
<string>Twemoji</string>
</edit>
</match>
<match target="pattern">
<test name="prgname" compare="not_eq">
<string>chrome</string>
<test name="family">
<string>Noto Sans</string>
</test>
<edit name="family" mode="prepend" binding="same">
<string>HarmonyOS Sans</string>
</edit>
</match>
<match target="pattern">
<test name="family" compare="contains">
<string>Noto Sans Mono CJK</string>
<string>Noto Sans CJK</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Iosevka Custom</string>
<edit name="family" mode="prepend" binding="same">
<string>HarmonyOS Sans SC</string>
</edit>
</match>

View file

@ -0,0 +1,17 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<match target="pattern">
<test name="lang">
<string>zh-TW</string>
</test>
<test name="family">
<string>HarmonyOS Sans SC</string>
</test>
<edit name="family" binding="same">
<string>HarmonyOS Sans TC</string>
</edit>
</match>
</fontconfig>

View file

@ -1,101 +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>Sarasa Gothic SC</string>
</test>
<edit name="family" binding="strong">
<string>Sarasa Gothic HC</string>
</edit>
</match>
<match target="pattern">
<test name="lang">
<string>zh-HK</string>
</test>
<test name="family">
<string>Sarasa Mono SC</string>
</test>
<edit name="family" binding="strong">
<string>Sarasa Mono HC</string>
</edit>
</match>
<match target="pattern">
<test name="lang">
<string>zh-TW</string>
</test>
<test name="family">
<string>Sarasa Gothic SC</string>
</test>
<edit name="family" binding="strong">
<string>Sarasa Gothic TC</string>
</edit>
</match>
<match target="pattern">
<test name="lang">
<string>zh-TW</string>
</test>
<test name="family">
<string>Sarasa Mono SC</string>
</test>
<edit name="family" binding="strong">
<string>Sarasa Mono TC</string>
</edit>
</match>
<match target="pattern">
<test name="lang">
<string>ja</string>
</test>
<test name="family">
<string>Sarasa Gothic SC</string>
</test>
<edit name="family" binding="strong">
<string>Sarasa Gothic J</string>
</edit>
</match>
<match target="pattern">
<test name="lang">
<string>ja</string>
</test>
<test name="family">
<string>Sarasa Mono SC</string>
</test>
<edit name="family" binding="strong">
<string>Sarasa Mono J</string>
</edit>
</match>
<match target="pattern">
<test name="lang">
<string>ko</string>
</test>
<test name="family">
<string>Sarasa Gothic SC</string>
</test>
<edit name="family" binding="strong">
<string>Sarasa Gothic K</string>
</edit>
</match>
<match target="pattern">
<test name="lang">
<string>ko</string>
</test>
<test name="family">
<string>Sarasa Mono SC</string>
</test>
<edit name="family" binding="strong">
<string>Sarasa Mono K</string>
</edit>
</match>
</fontconfig>

View file

@ -1,102 +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 SC</string>
</test>
<edit name="family" binding="strong">
<string>Source Han Sans HC</string>
</edit>
</match>
<match target="pattern">
<test name="lang">
<string>zh-TW</string>
</test>
<test name="family">
<string>Source Han Sans SC</string>
</test>
<edit name="family" binding="strong">
<string>Source Han Sans TC</string>
</edit>
</match>
<match target="pattern">
<test name="lang">
<string>ja</string>
</test>
<test name="family">
<string>Source Han Sans SC</string>
</test>
<edit name="family" binding="strong">
<!-- not have language notation -->
<string>Source Han Sans</string>
</edit>
</match>
<match target="pattern">
<test name="lang">
<string>ko</string>
</test>
<test name="family">
<string>Source Han Sans SC</string>
</test>
<edit name="family" binding="strong">
<string>Source Han Sans K</string>
</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,55 +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 Serif SC</string>
</test>
<edit name="family" binding="strong">
<!-- not have HC -->
<string>Source Han Serif TC</string>
</edit>
</match>
<match target="pattern">
<test name="lang">
<string>zh-TW</string>
</test>
<test name="family">
<string>Source Han Serif SC</string>
</test>
<edit name="family" binding="strong">
<string>Source Han Serif TC</string>
</edit>
</match>
<match target="pattern">
<test name="lang">
<string>ja</string>
</test>
<test name="family">
<string>Source Han Serif SC</string>
</test>
<edit name="family" binding="strong">
<!-- not have language notation -->
<string>Source Han Serif</string>
</edit>
</match>
<match target="pattern">
<test name="lang">
<string>ko</string>
</test>
<test name="family">
<string>Source Han Serif SC</string>
</test>
<edit name="family" binding="strong">
<string>Source Han Serif K</string>
</edit>
</match>
</fontconfig>

View file

@ -7,8 +7,8 @@
<test name="family">
<string>Cantarell</string>
</test>
<edit name="family" binding="strong">
<string>Noto Sans</string>
<edit name="family" binding="same">
<string>HarmonyOS Sans</string>
</edit>
</match>
@ -16,8 +16,8 @@
<test name="family">
<string>Arial</string>
</test>
<edit name="family" binding="strong">
<string>Noto Sans</string>
<edit name="family" binding="same">
<string>HarmonyOS Sans</string>
</edit>
</match>
@ -25,8 +25,8 @@
<test name="family">
<string>Tahoma</string>
</test>
<edit name="family" binding="strong">
<string>Noto Sans</string>
<edit name="family" binding="same">
<string>HarmonyOS Sans</string>
</edit>
</match>
@ -34,8 +34,8 @@
<test name="family">
<string>Calibri</string>
</test>
<edit name="family" binding="strong">
<string>Noto Sans</string>
<edit name="family" binding="same">
<string>HarmonyOS Sans</string>
</edit>
</match>
@ -43,8 +43,8 @@
<test name="family">
<string>Liberation Sans</string>
</test>
<edit name="family" binding="strong">
<string>Noto Sans</string>
<edit name="family" binding="same">
<string>HarmonyOS Sans</string>
</edit>
</match>
@ -52,8 +52,8 @@
<test name="family" compare="contains">
<string>Microsoft YaHei</string>
</test>
<edit name="family" binding="strong">
<string>Noto Sans CJK SC</string>
<edit name="family" binding="same">
<string>HarmonyOS Sans SC</string>
</edit>
</match>
@ -61,8 +61,8 @@
<test name="family">
<string>微软雅黑</string>
</test>
<edit name="family" binding="strong">
<string>Noto Sans CJK SC</string>
<edit name="family" binding="same">
<string>HarmonyOS Sans SC</string>
</edit>
</match>
@ -70,8 +70,8 @@
<test name="family">
<string>SimHei</string>
</test>
<edit name="family" binding="strong">
<string>Noto Sans CJK SC</string>
<edit name="family" binding="same">
<string>HarmonyOS Sans SC</string>
</edit>
</match>
@ -79,8 +79,8 @@
<test name="family">
<string>黑体</string>
</test>
<edit name="family" binding="strong">
<string>Noto Sans CJK SC</string>
<edit name="family" binding="same">
<string>HarmonyOS Sans SC</string>
</edit>
</match>
@ -89,7 +89,7 @@
<test name="family">
<string>Times New Roman</string>
</test>
<edit name="family" binding="strong">
<edit name="family" binding="same">
<string>Noto Serif</string>
</edit>
</match>
@ -98,7 +98,7 @@
<test name="family">
<string>Liberation Serif</string>
</test>
<edit name="family" binding="strong">
<edit name="family" binding="same">
<string>Noto Serif</string>
</edit>
</match>
@ -107,7 +107,7 @@
<test name="family" compare="contains">
<string>SimSun</string>
</test>
<edit name="family" binding="strong">
<edit name="family" binding="same">
<string>Noto Serif CJK SC</string>
</edit>
</match>
@ -116,7 +116,7 @@
<test name="family">
<string>宋体</string>
</test>
<edit name="family" binding="strong">
<edit name="family" binding="same">
<string>Noto Serif CJK SC</string>
</edit>
</match>
@ -125,7 +125,7 @@
<test name="family">
<string>FangSong</string>
</test>
<edit name="family" binding="strong">
<edit name="family" binding="same">
<string>Noto Serif CJK SC</string>
</edit>
</match>
@ -134,7 +134,7 @@
<test name="family">
<string>仿宋</string>
</test>
<edit name="family" binding="strong">
<edit name="family" binding="same">
<string>Noto Serif CJK SC</string>
</edit>
</match>
@ -144,7 +144,7 @@
<test name="family" compare="contains">
<string>Source Code</string>
</test>
<edit name="family" binding="strong">
<edit name="family" binding="same">
<string>Iosevka Custom</string>
</edit>
</match>
@ -153,7 +153,7 @@
<test name="family">
<string>Liberation Mono</string>
</test>
<edit name="family" binding="strong">
<edit name="family" binding="same">
<string>Iosevka Custom</string>
</edit>
</match>

View file

@ -1,29 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<match target="pattern">
<test name="lang" compare="contains">
<string>en</string>
</test>
<test name="family" compare="contains">
<string>Noto Sans CJK</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Sans</string>
</edit>
</match>
<match target="pattern">
<test name="lang" compare="contains">
<string>en</string>
</test>
<test name="family" compare="contains">
<string>Noto Serif CJK</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Serif</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="lang" compare="contains">
<string>en</string>
</test>
<test name="family" compare="contains">
<string>Sarasa Gothic</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Sans</string>
</edit>
</match>
</fontconfig>

View file

@ -1,20 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<match target="pattern">
<test name="lang" compare="contains">
<string>en</string>
</test>
<test name="family" compare="not_contains">
<string>HW</string>
</test>
<test name="family" compare="contains">
<string>Source Han Sans</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Sans</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="lang" compare="contains">
<string>en</string>
</test>
<test name="family" compare="contains">
<string>Source Han Serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Serif</string>
</edit>
</match>
</fontconfig>

View file

@ -13,7 +13,6 @@ scrollback_pager nvim --cmd "let $NVIM_AS_PAGER=1" --cmd "let $HANDLE_ANSI=1"
font_size 15.0
symbol_map U+3400-U+4DBF,U+4E00-U+9FFC Noto Sans Mono CJK SC
symbol_map U+E000-U+FAFF Symbols Nerd Font
enable_audio_bell no