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

Missing unicode simbol shown only on phanpy #476

Open
eliocamp opened this issue Mar 31, 2024 · 5 comments
Open

Missing unicode simbol shown only on phanpy #476

eliocamp opened this issue Mar 31, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@eliocamp
Copy link

Describe the bug
A clear and concise description of what the bug is.

  • Which site: phanpy.social
  • Which site version: 2024.03.28.ecd308c
  • Which instance: mastodon.social

To Reproduce
Steps to reproduce the behavior:

  1. Go to to https://mastodon.online/@danirabbit/112191286964479278
  2. See blue, pink and white hearts.
  3. Go to https://phanpy.social/#/mastodon.social/s/112191287236876403
  4. See a mess of invalid unicode symbols.

Expected behavior

The correct emojis should be shown

Screenshots

Correctly-looking post in the user's instance:

image

Correctly-looking post in mastodon.social client:

image

Post as it looks on phanpy:

image

Desktop (please complete the following information):

  • OS: elementary OS 6.1 Jólnir
  • Browser Firefox 124 and Chrome 123
@eliocamp eliocamp changed the title MIssing unicode simbol shown only on phanpy Missing unicode simbol shown only on phanpy Mar 31, 2024
@wakest
Copy link

wakest commented Mar 31, 2024

don't have the solution to this issues, but heres how it looks in Phanpy dev on newest Firefox on macOS
image

@cheeaun
Copy link
Owner

cheeaun commented Apr 1, 2024

Phanpy uses OS native emojis, so it's likely that your OS doesn't support them yet (specifically the included emoji font). This is a known common problem with emojis — that's why a lot of web apps (but not mobile apps 🤔) replace them with images (emoji iconsets) 😅.

Some analysis:

I'm aware of ways to fix this but despite emojis looking simple, they are quite complicated and require annual maintenance (there are always new emojis every year, coinciding with new OS releases 😩) — also one of the reasons why Phanpy doesn't include a (non-custom) emoji picker (as of now) 🙏

@cheeaun cheeaun added the enhancement New feature or request label Apr 1, 2024
@eliocamp
Copy link
Author

eliocamp commented Apr 1, 2024

I thought that could be the issue but then I didn't understand why the mastodon.social client showed the correct emojis. Is it using some other font rendering thing that doesn't rely on th system's emoji font?

@cheeaun
Copy link
Owner

cheeaun commented Apr 1, 2024

@eliocamp the client replaces the unicode character with an image.

Looking at the blue heart icon design, I suspect it's Twemoji https://emojipedia.org/twitter/twemoji-15.0.1/light-blue-heart

@Fastidious
Copy link
Contributor

This is how it shows in Gnome, no issues:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants