跳转至

如何使用Apple表情符号

问题

如何在Linux上使用Apple表情符号?

20240408223838-514d3-Apple emoji.png

方法

获取Apple Emoji字体

参考 samuelngs/apple-emoji-linux: Brings Apple's vibrant emojis to your Linux experience,我们首先下载字体文件到本地,此处以iOS 17.4为例

Bash
wget https://github.com/samuelngs/apple-emoji-linux/releases/download/v17.4/AppleColorEmoji.ttf

安装字体

首先确保文件夹存在

Bash
mkdir -p ~/.local/share/fonts

然后将字体复制到文件夹

Bash
cp AppleColorEmoji.ttf ~/.local/share/fonts

刷新字体缓存

Bash
fc-cache -f -v

注销[可选]

如果刷新字体缓存后Emoji没有生效,尝试以下两个步骤:

  1. 注销登录
  2. 或者重启系统

参考