Use a specific font for emojis

configurationemojifontconfigfonts

i’d like to use the pretty Segoe UI Symbol emoji.

I installed the font by copying it over from my windows install, and awesomely enough, my system falls back to it for all emoji that my main font doesn’t have. But all (black and white) emoji existing in my main font are used.

How can I tell fontconfig to prefer “Segoe UI Symbol” for certain unicode ranges (the ones defined here)?

Best Answer

A possible solution is to prepend the Emoji font like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <match target="font">
    <edit name="family" mode="prepend_first">
      <string>Emoji One Color</string>
    </edit>    
  </match>
</fontconfig>

The Emoji font is going be be used for the emojis even if the main font has glyphs for the emojis.

Related Question