contador web Saltar al contenido

Resolving the emoji bug in Linux browsers

Here's how to solve the problem that causes emojis to look wrong in browsers on Linux.

Emojis, emoticons, smiley faces I honestly don't even know the correct name, if there is only one. But the fact that they are everywhere since the internet internet. Helping us to express emotions, and from time to time making us have a good laugh.

bug-solving-emojis-in-browsers-in-linux

I'm one of those people who likes to send an emoji or another to make conversations on social networks more fun, informal, and sometimes even to signal that a comment was just a joke.

However, some time ago I realized that in most districts I tested using some graphic environment GTK There is a bug that makes emojis appear completely wrong. Instead of appearing the yellow faces, as usual, only their outlines appear in black lines. before-after-solving the emoji bug

As soon as I realized the problem, the first thing I did was test in other browsers, but the problem continued, even in Google Chrome, Chromium and Firefox. After some time researching I was able to find a fairly simple solution that I will now share with you.

First install a font pack from Google. This is the font package that contains the emojis that your browser will use. Simply copy and paste the command below into your terminal, according to your distro:

Linux Mint, Ubuntu and derivatives:

sudo apt install fonts-noto-color-emoji

Manjaro, Arch Linux and derivatives:

sudo pacman -S noto-fonts-emoji

Fedora:

sudo dnf install google-noto-emoji-color-fonts

Open SUSE and derivatives:

sudo zypper install noto-coloremoji-fonts

Open your Home folder. Press the Control + H key combination to display hidden files. Locate a folder named .config, and inside it create another folder named fontconfig.

folder-fontconfig-inside-folder-.config

Open the terminal, copy and paste the command below, and then press Enter.

Note: A long command, so be careful not to forget any characters when copying it. :]

echo -e ' n n n n serif n n Noto Color Emoji n n n n sans-serif n n Noto Color Emoji n n n n monospace n n Noto Color Emoji n n n'> /home/"$USER"/.config/fontconfig/fonts.conf

That done, just need to update the font cache with the command below:

sudo fc-cache -f

What we have done so far is enough to solve the problem in Chromium and Google Chrome. If the emojis have not returned to normal in the Firefox, an extra step will be required.

To resolve the bug in Firefox, according to your distro, copy and paste the following command into your terminal:

Linux Mint, Ubuntu and derivatives:

sudo rm -r / usr / share / fonts / truetype / dejavu

Manjaro, Arch Linux and derivatives:

sudo rm /usr/share/fonts/TTF/Deja*.ttf

Fedora:

sudo rm -r / usr / share / fonts / dejavu

Open SUSE and derivatives:

sudo rm /usr/share/fonts/truetype/Deja*.ttf

Ready! Now just restart your browser, and enjoy using your emojis as much as you want!

Do you like Linux and technology? Got a question or problem you can't solve? Come join our community in the Diolinux Plus!

For today all staff! :]

_____________________________________________________________________________

See an error or would you like to add any suggestions to this article? Collaborate, click here.