Changing emoji font in Kitty
Hystrelius July 04, 2023 Updated: July 04, 2023 [Features] #twemoji #kittyQuick post on how to use twitter emoji in the Kitty terminal. 🖥️✨
To begin, ensure that you have the twemoji font installed from the AUR Twemoji package. You can obtain it by following this link: AUR Twemoji package For convenient access, the font can be downloaded directly from this link from the AUR page: https://kojipkgs.fedoraproject.org/packages/twitter-twemoji-fonts/14.0.2/2.fc37/noarch/twitter-twemoji-fonts-14.0.2-2.fc37.noarch.rpm
Once you have acquired the package, extract the .tff file from the downloaded directory and proceed to install it through your preferred font manager.
Now, to set the new Twemoji font as the default option (following the advice from this StackExchange answer), navigate to the /etc/fonts/conf.d/60-generic.conf
file.
Locate the following section within the file:
emoji
<!-- System fonts -->
<!-- Google -->
Noto Color Emoji <!-- Apple -->
Apple Color Emoji <!-- Microsoft -->
Segoe UI Emoji <!-- Twitter -->
Twitter Color Emoji <!-- Mozilla -->
EmojiOne Mozilla <!-- Third-Party fonts -->
Emoji Two
Emoji One
<!-- Non-color -->
<!-- Google -->
Noto Emoji <!-- Google -->
Android Emoji
Then edit it to look like this:
emoji
<!-- System fonts -->
<!-- Twemoji -->
Twemoji <!-- Google -->
Noto Color Emoji <!-- Apple -->
Apple Color Emoji <!-- Microsoft -->
Segoe UI Emoji <!-- Twitter -->
Twitter Color Emoji <!-- Mozilla -->
EmojiOne Mozilla <!-- Third-Party fonts -->
Emoji Two
Emoji One
<!-- Non-color -->
<!-- Google -->
Noto Emoji <!-- Google -->
Android Emoji
Twemoji
is the name of the emoji font that was installed.
Then reload the font cache to get the fonts to work: fc-cache -f -v
.
To check it is working with Ctrl+Shift+U on the Kitty terminal.
Happy coding! 🧑💻
PS:
To get Twemoji to work on all operating systems edit the /etc/fonts/conf.d/48-generic.conf
to make it look like this:
<!-- Emoji -->
<!-- System emoji -->
<!-- Twitter -->
Twemoji emoji
<!-- Google -->
Noto Color Emoji emoji
Also, check in the ~/.config/fontconfig/fonts.conf
file that this line is in there:
Twemoji
FONT
Reload to confirm changes: fc-cache -f -v
PPS:
To get total twemoji across your system you can use https://github.com/13rac1/twemoji-color-font to have a more complete experience.