fontconfig: disable ligatures for monospace fonts

This commit is contained in:
Lucas 2020-12-08 19:42:51 +00:00
parent 54a7ab5e6e
commit 0dc2525dc4
1 changed files with 14 additions and 0 deletions

View File

@ -36,4 +36,18 @@
</pattern>
</acceptfont>
</selectfont>
<!-- disable ligatures for monospace fonts -->
<!-- Inspired by https://github.com/agriffis/skel/blob/69211a82584bf1bf1bbd6f0817d8611a5d967bfc/fontconfig/.config/fontconfig/fonts.conf#L127 -->
<match>
<test name="family" compare="contains">
<string>monospace</string>
</test>
<edit name="fontfeatures" mode="append">
<string>calt off</string>
<string>clig off</string>
<string>dlig off</string>
<string>liga off</string>
</edit>
</match>
</fontconfig>