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.
    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 :

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



如希望撰写评论,请发邮件至 me@tianhegao.com (直接点击邮箱可自动跳转至默认邮箱App,并填写收信人和邮件主题)或者点击这里在线留言,我会挑选对读者有价值的评论附加到文章末尾。



可通过以下渠道赞赏此文