dotfiles

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

commit 1e1e9228adf53c243acd7408ae43c413f781e721
parent 85e35e019f2057761b10c6024891badaeb24ad92
Author: Chris Bracken <chris@bracken.jp>
Date:   Tue,  5 May 2020 11:45:54 -0700

Set fonts.conf alias bindings to strong

This forces priority of configuration rules.

From the Font Matching section of the fontconfig user manual:

    Family names are split into two bindings; strong and weak. Strong
    family names are given greater precedence in the match than lang
    elements while weak family names are given lower precedence than
    lang elements. This permits the document language to drive font
    selection when any document specified font is unavailable.

I'm not convinced this is actually the "correct" solution, but it does
appear to work. It looks like FreeBSD already appends an emoji family to
all other families in /usr/local/etc/fonts/conf.d/45-generic.conf, but
that still doesn't override the default DejaVu bindings.

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

diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf @@ -4,19 +4,19 @@ <match target="font"> <edit name="embeddedbitmap"><bool>false</bool></edit> </match> - <alias> + <alias binding="strong"> <family>sans-serif</family> <prefer> <family>Twitter Color Emoji</family> </prefer> </alias> - <alias> + <alias binding="strong"> <family>serif</family> <prefer> <family>Twitter Color Emoji</family> </prefer> </alias> - <alias> + <alias binding="strong"> <family>monospace</family> <prefer> <family>Twitter Color Emoji</family>