9

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)?

1 Answer 1

1

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.

3
  • sure, but if it also contains glyphs for non-emoji codepoints, it will be used for those codepoints as well. e.g. Segoe UI Emoji has glyphs for a set similar to the latin-1 codepoints. Apr 18, 2016 at 14:57
  • @flyingsheep, yes, it won't work so well then. (Even, without this, this setup cause some issues.)
    – ysdx
    Apr 18, 2016 at 14:58
  • This returns the desired font if I run fc-match sans for example, but fonts do not render for me :( Aug 25, 2022 at 13:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .