flathub/com.discordapp.Discord

Had to install CJK fonts separately

Closed this issue · 5 comments

Hi, I was getting missing characters and emojis in Discord from Flathub (OpenSUSE Tumbleweed).

After installing google-noto-sans-cjk-fonts it got fixed.

Just wanted to suggest it fixed or made part of the packagea for a better out of the box experience.

Best regards

The package does bundle an emoji font:

{
"name": "twemoji-fonts",
"buildsystem": "simple",
"sources": [
{
"type": "file",
"path": "emoji-font.conf"
},
{
"type": "file",
"path": "Twemoji.ttf"
}
],
"build-commands": [
"mkdir -p /app/share/fonts/",
"cp Twemoji.ttf /app/share/fonts/",
"mkdir -p /app/etc/fonts/",
"cp emoji-font.conf /app/etc/fonts/local.conf",
"fc-cache -fv"
]
},
{

Not sure why it wasn't working for you.

It wasn't all for all emojis, but some Discord servers used emojis on the channel names and those didn't work until I installed the CJK fonts package mentioned above.

image

my guess, is that as Twemoji is owned by twitter, and we all know the mess that it become since a year ago, twemoji stopped updating the opensource project(the emoji used in twitter itself has the new emojis from spec 15, but they aren't on github) twitter/twemoji#570

We're still pushing twemoji updates here

guihkx commented

The Twemoji font we bundle with this Discord package is very outdated, and that's likely why you're missing a few glyphs.

However, in my humble opinion, no Flatpak app should be bundling any fonts whatsoever, unless they have a very strong reason to do so.

I'm not sure if other collaborators agree with this, but I personally am in favor of removing the Twemoji TTF from this package completely.

Manually installing emoji fonts from your distro's packages makes much more sense for me, because then it's the user who controls what emoji font he wants, e.g. they might prefer noto-emoji instead of Twemoji...

We're still pushing twemoji updates here

Thank you for that, but it looks like you don't publish the TTFs yet, so it's not very useful for us at this moment. I'll keep an eye on it, though.