Skip to content

Commit

Permalink
fontconfig: disable Zhudou Sans
Browse files Browse the repository at this point in the history
because it leads huge line gap

Buernia/Zhudou-Sans#7
  • Loading branch information
CoelacanthusHex committed Oct 16, 2023
1 parent 77ad635 commit a459f29
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 45 deletions.
6 changes: 0 additions & 6 deletions fontconfig/.config/fontconfig/conf.d/50-generic.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@
<string>sans-serif</string>
</test>
<edit binding="strong" mode="prepend" name="family">
<!--
Hack for some applications don't support font feature,
so I can't use pwid feature of Zhudou Sans to get half-width quotation marks.
-->
<string>AndikaQuote</string>
<string>Zhudou Sans</string>
<string>Andika</string>
<string>Source Han Sans</string>
<!-- 补全生僻字 -->
Expand Down
12 changes: 0 additions & 12 deletions fontconfig/.config/fontconfig/conf.d/51-replace-latin.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
<string>Noto Sans</string>
</test>
<edit name="family" binding="same">
<string>AndikaQuote</string>
<string>Zhudou Sans</string>
<string>Andika</string>
</edit>
</match>
Expand All @@ -23,8 +21,6 @@
<string>Liberation Sans</string>
</test>
<edit name="family" binding="same">
<string>AndikaQuote</string>
<string>Zhudou Sans</string>
<string>Andika</string>
</edit>
</match>
Expand All @@ -33,8 +29,6 @@
<string>Nimbus Sans</string>
</test>
<edit name="family" binding="same">
<string>AndikaQuote</string>
<string>Zhudou Sans</string>
<string>Andika</string>
</edit>
</match>
Expand All @@ -43,8 +37,6 @@
<string>Arial</string>
</test>
<edit name="family" binding="same">
<string>AndikaQuote</string>
<string>Zhudou Sans</string>
<string>Andika</string>
</edit>
</match>
Expand All @@ -53,8 +45,6 @@
<string>Helvetica</string>
</test>
<edit name="family" binding="same">
<string>AndikaQuote</string>
<string>Zhudou Sans</string>
<string>Andika</string>
</edit>
</match>
Expand All @@ -65,8 +55,6 @@
<string>Cantarell</string>
</test>
<edit name="family" binding="same">
<string>AndikaQuote</string>
<string>Zhudou Sans</string>
<string>Andika</string>
</edit>
</match>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@
<string>Iosevka</string>
</edit>
</match>
<match target="pattern">
<test name="family" compare="contains">
<string>Source Code Pro</string>
</test>
<edit name="family" binding="same">
<string>Iosevka</string>
</edit>
</match>
</fontconfig>
<!-- vim: set fdm=marker nu sts=2 sw=2 et: -->
<!-- kate: space-indent on; indent-width 2; -->
22 changes: 0 additions & 22 deletions fontconfig/.config/fontconfig/conf.d/51-replace-zh-cn-others.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
<string>SimKai</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>AndikaQuote</string>
<string>Zhudou Sans</string>
<string>Andika</string>
<string>方正萤雪简体</string>
<string>方正萤雪繁体</string>
Expand All @@ -23,8 +21,6 @@
<string>楷体</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>AndikaQuote</string>
<string>Zhudou Sans</string>
<string>Andika</string>
<string>方正萤雪简体</string>
<string>方正萤雪繁体</string>
Expand All @@ -36,8 +32,6 @@
<string>KaiTi</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>AndikaQuote</string>
<string>Zhudou Sans</string>
<string>Andika</string>
<string>方正萤雪简体</string>
<string>方正萤雪繁体</string>
Expand All @@ -49,8 +43,6 @@
<string>楷体_GB2312</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>AndikaQuote</string>
<string>Zhudou Sans</string>
<string>Andika</string>
<string>方正萤雪简体</string>
<string>方正萤雪繁体</string>
Expand All @@ -62,8 +54,6 @@
<string>KaiTi_GB2312</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>AndikaQuote</string>
<string>Zhudou Sans</string>
<string>Andika</string>
<string>方正萤雪简体</string>
<string>方正萤雪繁体</string>
Expand All @@ -75,8 +65,6 @@
<string>标楷体</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>AndikaQuote</string>
<string>Zhudou Sans</string>
<string>Andika</string>
<string>方正萤雪繁体</string>
<string>方正萤雪简体</string>
Expand All @@ -88,8 +76,6 @@
<string>DFKai-SB</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>AndikaQuote</string>
<string>Zhudou Sans</string>
<string>Andika</string>
<string>方正萤雪繁体</string>
<string>方正萤雪简体</string>
Expand All @@ -103,8 +89,6 @@
<string>仿宋</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>AndikaQuote</string>
<string>Zhudou Sans</string>
<string>Andika</string>
<string>方正刻本仿宋简体</string>
<string>方正仿宋_GBK</string>
Expand All @@ -115,8 +99,6 @@
<string>仿宋_GB2312</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>AndikaQuote</string>
<string>Zhudou Sans</string>
<string>Andika</string>
<string>方正刻本仿宋简体</string>
<string>方正仿宋_GBK</string>
Expand All @@ -127,8 +109,6 @@
<string>FangSong</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>AndikaQuote</string>
<string>Zhudou Sans</string>
<string>Andika</string>
<string>方正刻本仿宋简体</string>
<string>方正仿宋_GBK</string>
Expand All @@ -139,8 +119,6 @@
<string>FangSong_GB2312</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>AndikaQuote</string>
<string>Zhudou Sans</string>
<string>Andika</string>
<string>方正刻本仿宋简体</string>
<string>方正仿宋_GBK</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
<string>标楷体</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>AndikaQuote</string>
<string>Zhudou Sans</string>
<string>Andika</string>
<string>方正萤雪繁体</string>
<string>方正萤雪简体</string>
Expand All @@ -23,8 +21,6 @@
<string>DFKai-SB</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>AndikaQuote</string>
<string>Zhudou Sans</string>
<string>Andika</string>
<string>方正萤雪繁体</string>
<string>方正萤雪简体</string>
Expand Down
1 change: 0 additions & 1 deletion fontconfig/.config/fontconfig/conf.d/53-telegram-font.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<string>telegram-desktop</string>
</test>
<test qual="any" name="family">
<string>Zhudou Sans</string>
</test>
<edit binding="strong" mode="delete" name="family"></edit>
</match>
Expand Down

0 comments on commit a459f29

Please sign in to comment.