Color Emoji in Idea (Linux)
I'm trying to make Emojis work on my Arch Linux system with IDEA 2018.2.2 Ultimate.
I have the noto-fonts-emoji package installed and its working fine for the system in general (Terminal, Chrome, etc) but in IDEA nearly no emojis are shown.
I created the following test file:
🤷 Person Shrugging
♡ White Heart Suit
❤ Red Heart
😂 Face With Tears of Joy
🤔 Thinking Face
😍 Smiling Face With Heart-Eyes
😊 Smiling Face With Smiling Eyes
🔥 Fire
👍 Thumbs Up
In chrome it looks fine:
In my Terminal it looks fine:
But in IDEA most of the emojis are missing:
There is not even a placeholder to indicate a broken glyph. There is just nothing. This is what my Settings->Editor->Font config looks like:
I tried using different base fonts, tried to set the Noto Color Emoji font as fallback font, all to no avail.
My ~/.config/fontconfig/conf.d/01-emoji.conf looks like this (in case it matters):
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match>
<test name="family"><string>serif</string></test>
<edit name="family" mode="prepend" binding="strong">
<string>Bitstream Vera Serif</string>
<string>Noto Color Emoji</string>
</edit>
</match>
<match>
<test name="family"><string>sans-serif</string></test>
<edit name="family" mode="prepend" binding="strong">
<string>Bitstream Vera Sans</string>
<string>Noto Color Emoji</string>
</edit>
</match>
<match>
<test name="family"><string>Apple Color Emoji</string></test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Color Emoji</string>
</edit>
</match>
<match>
<test name="family"><string>Segoe UI Emoji</string></test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Color Emoji</string>
</edit>
</match>
</fontconfig>
Does anyone know how to get color Emojis to work on (Arch)-Linux? Or if color doesn't work, have IDEA at least show some monochrome emoji (without reverting the whole OS back to monochrome)?
Please sign in to leave a comment.
Hi.
Please check this issue:
https://youtrack.jetbrains.com/issue/IDEA-192107
That link is a 404 for me!?
I have amended a visibility. Also there is a master ticket to support emoji on Linux: https://youtrack.jetbrains.com/issue/JRE-410
yeah, this is pretty annoying. Sometimes when an emoji has been pasted from the clipboard and I cant see it and think the file hasn't changed but it has and triggers git and other hooks, possible other implications and then have to do git reset --hard on the file or open it in another editor to remove the problem character.
There should at least be a broken symbol placeholder if it can not be displayed.
I was able to fix the problem by installing the correct JRE in archlinux
I wrote up a blog about it here https://nivenly.com/lib/2021-05-14-emoji-archlinux/
Basically just remove goland (or clion or whatever) and then re-install with the correct JRE for that package
i also added a few other fonts to make it cute because i like cute shit