rofimoji icon indicating copy to clipboard operation
rofimoji copied to clipboard

[Display Problem]

Open dordio opened this issue 1 year ago • 13 comments

  • What does rofimoji show instead of the emojis? Can you please share a screenshot (`Alt+Shift+s** in rofimoji) Here is a screenshot of rofimoji at work. Sorry for it being a photo, my screenshot software is having one of those days. No icons are displayed 20220914_1708542

  • What do other apps like Firefox/Chrome/your text editor show instead of emojis? All other apps show the emojis correctly, even when I copy/paste them from rofimoji. I can call rofimoji type a description of what I wan't, copy and paste it every where with no issue.

  • Which emoji fonts do you have installed? I have Noto Emoji installed.

  • Are the emoji fonts set in your font config? I'm not sure about this, but the fonts do appear in font viewer.

  • Which versions of rofimoji and pango are installed? rofimoji is version 5.5.0 as for pango when run "apt list --installed" I get the following list: gir1.2-pango-1.0/jammy,now 1.50.6+ds-2 amd64 [instalado,automático] libcogl-pango20/jammy,now 1.22.8-3build1 amd64 [instalado,automático] libpango-1.0-0/jammy,now 1.50.6+ds-2 amd64 [instalado,automático] libpangocairo-1.0-0/jammy,now 1.50.6+ds-2 amd64 [instalado,automático] libpangoft2-1.0-0/jammy,now 1.50.6+ds-2 amd64 [instalado,automático] libpangomm-1.4-1v5/jammy,now 2.46.2-1 amd64 [instalado,automático] libpangoxft-1.0-0/jammy,now 1.50.6+ds-2 amd64 [instalado,automático]

Thank you for your time and for your work.

Best regards.

dordio avatar Sep 14 '22 16:09 dordio

This looks like a font problem with rofi. Do you set any font in its config?

fdw avatar Sep 14 '22 16:09 fdw

The only font config I have for rofi is this line in i3 config file bindsym $mod+d exec --no-startup-id rofi -show run -width 100 -font "Fira Code 18"

I tried removing the font call, but to no avail, still no icons.

dordio avatar Sep 14 '22 20:09 dordio

As a test I changed rofimoji config file to load fontawesome6.csv instead of emojis.csv With this option I can see the icons. I tried other csv files and they also work fine. Only emojis.csv is not displaying anything.

ps: emoticons.csv also doesn't work

dordio avatar Sep 14 '22 20:09 dordio

Do you use rofimoji standalone or as a rofi mode?

Apart from that, it looks like a font/display issue, as the correct character is selected. But currently, I have absolutely no idea what could be causing this. If you pass some emoji to rofi -dmenu, do they show up?

fdw avatar Sep 15 '22 15:09 fdw

I'm using rofimoji standalone, I call it with bindsym $mod+period exec --no-startup-id rofimoji

I don't know how to pass emojis to rofi. Sorry.

I'm going to try and reinstall all my fonts, see if it helps.

dordio avatar Sep 15 '22 21:09 dordio

I don't know how to pass emojis to rofi. Sorry.

This should do the trick: echo "🙂" | rofi -dmenu

And just for good measure: What are your rofi and python versions?

fdw avatar Sep 16 '22 10:09 fdw

Ok, I'm stupid, I realize that as soon as I read the word "echo". Yeah, I know how to pass something to something else. Don't know what my brain was doing at the time. Sorry.

Anyway I tried passing an emoji to rofi, all i got is an empty rofi window.

I did reinstall my fonts but to no avail.

rofi is version 1.7.1 python is version 3.10.4

dordio avatar Sep 16 '22 17:09 dordio

So rofimoji isn't the problem, but something else (I don't think that helps you 🙈). I've found something here, but that doesn't have a solution, either. Apparently it's related to pango, though.

fdw avatar Sep 16 '22 19:09 fdw

So the site you referred made me test the following: adding the font to rofi's config file got me the following result (again sorry for the photo, my screenshot app simply won't capture rofimoji)

20220916_232413

The font I added is Emoji One

I'll try to see if I can find any problems related to pango.

dordio avatar Sep 16 '22 22:09 dordio

You can make screenshots of rofi with Alt+Shift+s 🙂

Also, that very much looks like a font issue. Maybe this also helps?

fdw avatar Sep 17 '22 07:09 fdw

Nope, Alt+Shift+s doesn't work. I'm starting to think it's an OS issue. I'm running i3 on top of POP OS. I'm considering reinstalling to see if it gets fixed. Since I need the computer for work I might do it next weekend.

Either way the page you refered also didn't help (sad face emoji here).

So, for now, I'm giving up on the issue. If you don't mind I'll comment once I manage to find a solution.

Thank you for all your trouble.

dordio avatar Sep 18 '22 11:09 dordio

Good luck then! 🤞

fdw avatar Sep 18 '22 11:09 fdw

Thank you! (smiley face emoji)(thumbs up emoji)

dordio avatar Sep 18 '22 14:09 dordio

I'll close this for now, but feel free to re-open or open a new issue if you still have trouble 🙂

fdw avatar Oct 22 '22 17:10 fdw