Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the UI font to a custom font makes emojis change #14398

Closed
pioneer opened this issue Jul 10, 2020 · 10 comments · Fixed by matrix-org/matrix-react-sdk#11935
Closed

Changing the UI font to a custom font makes emojis change #14398

pioneer opened this issue Jul 10, 2020 · 10 comments · Fixed by matrix-org/matrix-react-sdk#11935
Assignees
Labels
A-Appearance A-Emoji O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect

Comments

@pioneer
Copy link
Contributor

pioneer commented Jul 10, 2020

Default UI font:
Выделение_198

Roboto:
Выделение_199

Steps to reproduce

Expected result:

Although design-wise I'm not 100% sure which solution is the best, I believe changing the UI font should not lead to such an unexpected thing. Instead, either the look of emojis should not be changed, or the user can select the emojis look independently using one of the predefined packs, for example.

@pioneer
Copy link
Contributor Author

pioneer commented Jul 10, 2020

I was given this link - https://blog.livthomas.net/adding-color-emojis-to-chrome-on-fedora/, and seems it's very relevant, but I haven't used it just because installing the following packages from AUR and restarting Riot helped without any additional action: noto-fonts-emoji-flags, noto-fonts-emoji-fontconfig.

@Pestdoktor
Copy link
Contributor

You are overriding the entire stack with that setting, so for your desired result you'd have to append the fallback fonts again:
Roboto,Twemoji,Apple Color Emoji,Segoe UI Emoji,Arial,Helvetica,Sans-Serif,Noto Color Emoji or something to that effect.

Maybe this should be done transparently by riot?

@geckolinux
Copy link

I'm also running into this on openSUSE Tumbleweed when trying to use the Ubuntu font. I don't mind the B&W emojis, but the problem is that some of them are wrong. For example, here there should just be 3 "facepalms" (nothing to do with Riot 😉 ) :

Screenshot at 2020-07-14 08-43-19

So from @pioneer 's link, do I understand that I would have to use a font that specifically has a color emoji subset? Or can I put more than one font in the field?

Would it be possible to just make Riot always use its default font for emojis?

@Pestdoktor
Copy link
Contributor

Or can I put more than one font in the field?

Yes, put a comma-seperated list ordered by descending priority and it will use the first font which supports any given character.

@turt2live turt2live changed the title Changing the UI font to Roboto makes emoji reactions black and white Changing the UI font to a custom font makes emojis change Jul 15, 2020
@Pestdoktor
Copy link
Contributor

Pestdoktor commented Jul 18, 2020

#14494 could be solved independently by removing ← through  from Element's distribution of https://rsms.me/inter/#charset

@iav
Copy link

iav commented Jul 22, 2020

Workaround work for me on windows 10:
set font string Arial,Twemoji,Apple Color Emoji,Segoe UI Emoji
I have arial text and good emoji.

@maralorn
Copy link

For what it's worth: For me personally knowing that you can enter a list of fonts and not just one font into the field helped me a lot. If the tool tip could be a little bit more precise and maybe show the default setting that would probably help a lot.

@jryans jryans added A-Appearance P4 [OBSOLETE LABEL] Interesting — Not yet scheduled, will accept patches S-Tolerable Low/no impact on users labels Mar 9, 2021
@SimonBrandner SimonBrandner added O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist and removed P4 [OBSOLETE LABEL] Interesting — Not yet scheduled, will accept patches S-Tolerable Low/no impact on users labels Dec 27, 2021
@frakic
Copy link

frakic commented May 16, 2022

Retested on both Element Web and Nightly 1.10.12 by adding Open Sans as a custom font.
Emojis appear different and some of them seem to be missing entirely:
image

The workaround, as mentioned above, is to set custom font to Open Sans,Twemoji,Apple Color Emoji,Segoe UI Emoji
That way I have Open Sans set as my default font and emojis look fine:
image

I say we leave this issue open but with low priority.

@CutestNekoAqua
Copy link

For you all who may wanna use noto emojis:
Roboto,Segoe UI Emoji,Arial,Helvetica,Sans-Serif,Noto Color Emoji

@t3chguy
Copy link
Member

t3chguy commented Jun 22, 2023

Related #9790

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Appearance A-Emoji O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants