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

Some emoji are shown in text style in the UI #86

Closed
waldyrious opened this issue Jan 2, 2023 · 3 comments
Closed

Some emoji are shown in text style in the UI #86

waldyrious opened this issue Jan 2, 2023 · 3 comments

Comments

@waldyrious
Copy link
Contributor

I originally reported this here. Copying the screenshot for convenience:

Screenshot from 2021-08-27 15-30-57

Note that this is different from #71 — as clarified by @carbongreat13, the problem there one that about the output of Emote is shown in text style, rather than what's shown in the interface, whereas in my case it's the opposite. (That said, it's possible that the causes are related.)

Since my problem was not reproducible by the maintainer, I didn't report it as a separate issue. I'm doing so now because I finally found the cause: It's because I had the ttf-unifont package installed. After uninstalling it, Emote no longer shows these characters as text in the UI! I installed fonts-symbola instead, which did provide the rare characters I needed (in my case, it was 🞂 (U+1F782), which I had set as a the prompt marker in my Starship configuration), without interfering with Emote. So hopefully this may help others who may find themselves the same situation.

The other reason I am reporting this is that I actually believe this to be a bug in Emote, since the emoji that showed in text style in Emote's interface were actually shown correctly (in emoji display mode) in the apps where Emote would past them to. So I suspect that somehow Emote is erroneously giving higher precedence to Unifont, even though there are local fonts that provide the characters as emoji, and in a way that doesn't happen with other fonts like Symbola.

I don't know what strategy the other apps are using to correctly identify which font to use for the emoji characters, but whatever is their system, Emote should probably try to implement something similar.

@veloute
Copy link

veloute commented Mar 26, 2023

Experiencing the same issue.

@waldyrious
Copy link
Contributor Author

@veloute do you have a similar setup as what I described above?

I finally found the cause: It's because I had the ttf-unifont package installed. After uninstalling it, Emote no longer shows these characters as text in the UI! I installed fonts-symbola instead, which did provide the rare characters I needed [...], without interfering with Emote.

@tom-james-watson
Copy link
Owner

There is a new major version of emote that touches a lot of code related to this. Will close this out for now. If you still see this issue, please drop a comment. Also, please check whether you also see the same issue on the new flatpak distribution (see README). Thanks!

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

No branches or pull requests

3 participants