dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit ef2f0d829ecd07f9eb99766298d1614292265985
parent 83d9fab25c59ef34c55e44cf3ec34033cd31b254
Author: Chris Bracken <chris@bracken.jp>
Date:   Wed, 11 Aug 2021 17:31:16 -0700

Disable ligatures in Noto Sans Mono

Noto Sans Mono includes ligatures for 'fi' etc. which look out-of-place
in a monospace font, but also reduce the number of glyphs in a line by
one for each such ligature. This disables ligatures in all apps that use
fontconfig.

Unfortunately, firefox ignores the `fontfeatures` tag, so the only
option there is to switch fonts.

Diffstat:
M.config/fontconfig/fonts.conf | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf @@ -22,4 +22,13 @@ <family>Noto Color Emoji</family> </prefer> </alias> + <match target="font"> + <test name="family" compare="eq" ignore-blanks="true"> + <string>Noto Sans Mono</string> + </test> + <edit name="fontfeatures" mode="append"> + <string>liga off</string> + <string>dlig off</string> + </edit> + </match> </fontconfig>