Solved How to display Emoji

Not sure if this is the correct location of this topic but I can't seem to get color emojis to display properly. Instead it displays the monochrome emoji glyphs. I tried adding a fontconfig rule "57-add-emoji-support.conf" with the appropriate symlink. I installed twemoji-color-font-ttf-1.4. Here is my /usr/local/etc/fonts/conf.avail/57-add-emoji-support.conf

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!--
EmojiOne Color SVGinOT Font

Author: Santiago Saavedra <ssaavedra@gpul.org>
License: CC0
Year: 2016

Install:
  Copy to $XDG_CONFIG_DIR/fontconfig/conf.d/57-add-emoji-support.conf
  Run fc-cache -f

Description:
  This fontconfig script prepends an emoji family to every other family.
  Then, the emoji family is defined to have EmojiOne Color as its default member.
  This would work with a build of Noto Color Emoji which wouldn't override
  non-emoji symbols, but the one I have overrides at least numbers.

-->
<fontconfig>
<match>
<test name="family"><string>sans-serif</string></test>
<edit name="family" mode="prepend" binding="strong">
<string>Twitter Color Emoji</string>
</edit>
</match>
<match>
<test name="family"><string>serif</string></test>
<edit name="family" mode="prepend" binding="strong">
<string>Twitter Color Emoji</string>
</edit>
</match>
<match>
<test name="family"><string>Apple Color Emoji</string></test>
<edit name="family" mode="prepend" binding="strong">
<string>Twitter Color Emoji</string>
</edit>
</match>
</fontconfig>

EDIT: turns out it was working all along. I can see emojis in Firefox. It doesn't work with chromium or chromium based browsers like qutebrowser which I use. The thing is the emoji works in this browser on linux. So this is partially solved until I find the reason why.
 
Last edited:
Back
Top