fontconfig: disable ligatures for monospace fonts

This commit is contained in:
Lucas 2020-12-08 19:42:51 +00:00
parent 54a7ab5e6e
commit 0dc2525dc4

View File

@ -36,4 +36,18 @@
</pattern> </pattern>
</acceptfont> </acceptfont>
</selectfont> </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> </fontconfig>