commit 3a4fb62bff71b7c57f61d2a5085fa66b0cfcb736
parent 0e2a50f24787bc940f84ffddd406d1569dde0dc6
Author: Chris Bracken <chris@bracken.jp>
Date: Thu, 7 May 2020 16:45:56 -0700
Prefer Noto fonts, then emoji
Prior to 1e1e9228adf53c243acd7408ae43c413f781e721, emoji were not
working correctly on FreeBSD. The DejaVu fonts include a bunch of
monochrome emoji which take precendence over the colour emoji in the
Twitter Color Emoji font.
While setting the Twitter Color Emoji font as preferred for serif,
sans-serif and monospace font aliases *did* result in consistent emoji
being displayed across the board, it also made that font the default for
all font families, which caused issues with monospaced text, in
particular.
Since the issue is the presence of emoji in the DejaVu fonts, we force
Noto Sans, Serif, and Sans Mono to the front of the sans-serif, serif,
and monospace alias lists since they're reasonable alternative defaults
and don't include emoji.
Some relevant discussion here:
https://www.reddit.com/r/kde/comments/e7qusj/this_week_in_kde_easy_emoji_input_and_more/fa9m10r/
Test page to verify:
https://eosrei.github.io/emojione-color-font/full-demo.html
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf
@@ -1,24 +1,24 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
- <match target="font">
- <edit name="embeddedbitmap"><bool>false</bool></edit>
- </match>
<alias binding="strong">
<family>sans-serif</family>
<prefer>
+ <family>Noto Sans</family>
<family>Twitter Color Emoji</family>
</prefer>
</alias>
<alias binding="strong">
<family>serif</family>
<prefer>
+ <family>Noto Serif</family>
<family>Twitter Color Emoji</family>
</prefer>
</alias>
<alias binding="strong">
<family>monospace</family>
<prefer>
+ <family>Noto Sans Mono</family>
<family>Twitter Color Emoji</family>
</prefer>
</alias>