From 81509903cbff8df053bda68ff4b602624dfe9b4e Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Thu, 13 Jul 2023 10:35:12 +0200
Subject: Add blog post on fixing emoji on Debian KDE
---
...07-13-getting-emoji-to-work-in-kde-on-debian.md | 138 +++++++++++++++++++++
1 file changed, 138 insertions(+)
create mode 100644 content/posts/2023/2023-07-13-getting-emoji-to-work-in-kde-on-debian.md
diff --git a/content/posts/2023/2023-07-13-getting-emoji-to-work-in-kde-on-debian.md b/content/posts/2023/2023-07-13-getting-emoji-to-work-in-kde-on-debian.md
new file mode 100644
index 0000000..14caadf
--- /dev/null
+++ b/content/posts/2023/2023-07-13-getting-emoji-to-work-in-kde-on-debian.md
@@ -0,0 +1,138 @@
+---
+date: 2023-07-13
+title: Getting Emoji to Work in KDE on Debian
+tags:
+- Debian
+- GNU+Linux
+- KDE
+---
+
+This is going to be a relatively short and uninteresting post for most, it'll
+just document how to get emoji to work in KDE.
+
+While it will work with most applications out of the box, this doesn't appear to
+work in Qt applications by default, including the notification panel. As I use
+my notifications for messages I get from my work chat, and I dislike seeing the
+squares, I set out to find the solution. I've had to string together a couple
+sources of information to get to the correct setup, and this blog post intends
+to show just the useful bits. So here goes!
+
+You'll need an emoji font (in my case `fonts-noto-color-emoji`), add two
+configuration files for fontconfig, rebuild the fontconfig cache, and most
+likely log out and back into KDE. Installing the emoji font is probably the easy
+bit and won't need any additional explanation I hope. So let's get started on
+the first configuration file, which will enable the Noto emoji font to be used,
+and also force it to be used in favour of other emoji fonts if any application
+was using that specifically. I have it saved as
+`/etc/fonts/conf.d/75-noto-color-emoji.conf`.
+
+{% highlight xml %}
+
+
+
+
+
+ emoji
+ Noto Color Emoji
+
+
+
+
+ sans
+ Noto Color Emoji
+
+
+ serif
+ Noto Color Emoji
+
+
+ sans-serif
+ Noto Color Emoji
+
+
+ monospace
+ Noto Color Emoji
+
+
+
+
+
+
+
+ Symbola
+
+
+
+
+
+
+
+ Apple Color Emoji
+ Noto Color Emoji
+
+
+ Segoe UI Emoji
+ Noto Color Emoji
+
+
+ Segoe UI Symbol
+ Noto Color Emoji
+
+
+ Android Emoji
+ Noto Color Emoji
+
+
+ Twitter Color Emoji
+ Noto Color Emoji
+
+
+ Twemoji
+ Noto Color Emoji
+
+
+ Twemoji Mozilla
+ Noto Color Emoji
+
+
+ TwemojiMozilla
+ Noto Color Emoji
+
+
+ EmojiTwo
+ Noto Color Emoji
+
+
+ Emoji Two
+ Noto Color Emoji
+
+
+ EmojiSymbols
+ Noto Color Emoji
+
+
+ Symbola
+ Noto Color Emoji
+
+
+{% endhighlight %}
+
+The second configuration file, saved as `/etc/fonts/conf.d/local.conf`, simply
+adds the Noto emoji font as a fallback. This enables the use of it when an emoji
+is going to be rendered.
+
+{% highlight xml %}
+
+
+
+
+
+ Noto Color Emoji
+
+
+
+{% endhighlight %}
+
+And after this, a relog of your (graphical) session should be all that is needed
+in order to make it work. You can easily test it with `notify-send`, or trying
+to render some emoji in `konsole`.
--
cgit v1.1