Fix fontconfig: weird fonts in chrome and steam

This commit is contained in:
rydesun 2021-02-15 15:03:23 +08:00
parent 523c04bc9f
commit c9eea7b317
5 changed files with 34 additions and 14 deletions

View file

@ -40,11 +40,22 @@
<string>monospace</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Iosevka Custom</string>
<string>Noto Sans Mono CJK 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>
<test name="family" compare="contains">
<string>Noto Sans Mono CJK</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Iosevka Custom</string>
</edit>
</match>
</fontconfig>

View file

@ -6,6 +6,9 @@
<test name="prgname" compare="not_eq">
<string>chrome</string>
</test>
<test name="prgname" compare="not_eq">
<string>steam</string>
</test>
<test name="family" compare="contains">
<string>Noto Sans CJK</string>
</test>
@ -18,24 +21,15 @@
<test name="prgname" compare="not_eq">
<string>chrome</string>
</test>
<test name="prgname" compare="not_eq">
<string>steam</string>
</test>
<test name="family" compare="contains">
<string>Noto Serif CJK</string>
<string>Noto Serif CJK</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Serif</string>
</edit>
</match>
<match target="pattern">
<test name="prgname" compare="not_eq">
<string>chrome</string>
</test>
<test name="family" compare="contains">
<string>Noto Sans Mono CJK</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Iosevka Custom</string>
</edit>
</match>
</fontconfig>

View file

@ -6,6 +6,9 @@
<test name="prgname" compare="not_eq">
<string>chrome</string>
</test>
<test name="prgname" compare="not_eq">
<string>steam</string>
</test>
<test name="family" compare="contains">
<string>Sarasa Gothic</string>
</test>
@ -18,6 +21,9 @@
<test name="prgname" compare="not_eq">
<string>chrome</string>
</test>
<test name="prgname" compare="not_eq">
<string>steam</string>
</test>
<test name="family" compare="contains">
<string>Sarasa Mono</string>
</test>

View file

@ -6,6 +6,9 @@
<test name="prgname" compare="not_eq">
<string>chrome</string>
</test>
<test name="prgname" compare="not_eq">
<string>steam</string>
</test>
<test name="family" compare="not_contains">
<string>HW</string>
</test>
@ -21,6 +24,9 @@
<test name="prgname" compare="not_eq">
<string>chrome</string>
</test>
<test name="prgname" compare="not_eq">
<string>steam</string>
</test>
<test name="family" compare="contains">
<string>Source Han Sans HW</string>
</test>

View file

@ -6,6 +6,9 @@
<test name="prgname" compare="not_eq">
<string>chrome</string>
</test>
<test name="prgname" compare="not_eq">
<string>steam</string>
</test>
<test name="family" compare="contains">
<string>Source Han Serif</string>
</test>