Konsole 支持 Emoji

https://gist.github.com/IgnoredAmbience/7c99b6cf9a8b73c9312a71d1209d9bbb

  1. Ensure that the Noto fonts are installed on your machine.
  2. Install this file to ~/.config/fontconfig/conf.d/99-noto-mono-color-emoji.conf
  3. Run fc-cache
  4. Set Konsole to use "IBM Plex Mono" as the font.
  5. Restart Konsole.
1
2
3
4
    sudo pacman -S noto-fonts-emoji nerd-fonts-ibm-plex-mono
    mkdir -p ~/.config/fontconfig/conf.d/
    emacs -nw ~/.config/fontconfig/conf.d/99-noto-mono-color-emoji.conf
    fc-cache

99-noto-mono-color-emoji.conf :

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE fontconfig SYSTEM "fonts.dtd">

    <fontconfig>
      <match>
        <test name="family"><string>IBM Plex Mono</string></test>
        <edit name="family" mode="prepend" binding="strong">
          <string>Noto Color Emoji</string>
        </edit>
      </match>
    </fontconfig>

Layout of comment panels