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

Relaxed emoji is not colorful, its black & white lines. #262

Open
ZRaunaque opened this issue Mar 22, 2023 · 3 comments
Open

Relaxed emoji is not colorful, its black & white lines. #262

ZRaunaque opened this issue Mar 22, 2023 · 3 comments
Labels
question Further information is requested

Comments

@ZRaunaque
Copy link

Hi @serebrov,
When I clicked on the relaxed emoji, it print as b&w lined svg. Although in picker it shows as colorful.
Screenshot 2023-03-22 at 11 37 44 AM
Screenshot 2023-03-22 at 11 37 57 AM

Im using a mac. Pls let me know asap how can we resolve this.

@serebrov
Copy link
Owner

serebrov commented May 1, 2023

@ZRaunaque Do you think this is the problem with the picker? Once you clicked the emoji in the picker, it gets passed to the external code, so you need to check your implementation to see why it is like that.

It might also be useful to check this section of the docs if you try to use native emojis (they will not work everywhere).

You can refer to the demo app that also displays the selected emoji below the picker, source is here.

@serebrov serebrov added the question Further information is requested label May 1, 2023
@Zumra96
Copy link

Zumra96 commented Jul 30, 2024

it is not working on your demo as well.
image

@serebrov
Copy link
Owner

@Zumra96 With native emoji it depends on what is supported by your font (which, in turn, depends on your browser and operating system).

You can find more details in the README, the section I linked above:

It might also be useful to check this section of the docs if you try to use native emojis (they will not work everywhere).

In particular, this part:

In practice, the support for native unicode emoji is still not perfect: unicode emoji characters are part of the font and the font needs to be colorful. But there is no yet a single standard for color fonts implemented by browsers, so the browser leaves emoji rendering to the operating system.

This way, how the emoji will look depends on the operating system and native unicode emoji will look different on different platforms. Also older operating system versions don't not support all the emojis that are currently in the unicode standard, so it may be necessary to limit emojis to some smaller subset.

This is as far as I know and I did not research the recent state of things. Maybe now there is some magical font that is supported across all browsers and platforms and the fix here could be a CSS change.

The current code that defines the native emoji font is here:

.emoji-type-native {
font-family: 'Segoe UI Emoji', 'Segoe UI Symbol', 'Segoe UI',
'Apple Color Emoji', 'Twemoji Mozilla', 'Noto Color Emoji', 'EmojiOne Color',
'Android Emoji';
word-break: keep-all;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants