NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.08k stars 14.08k forks source link

Working Emoji Config for Desktop Users? #65279

Open colemickens opened 5 years ago

colemickens commented 5 years ago

Does anyone have an emoji setup that actually works properly? I have emoji installed, no local fontconfig that I know of, and the emoji are frankly a burden. When they are in webpage titles, they expand the titlebar of my WM. They appear in build outputs and random messages and are comically large and obscure parts of the screen.

Surely someone has a fontconfig in their nixos configuration that works well with emoji? (Noto Emoji probably?)

grahamc commented 5 years ago

When they are in webpage titles, they expand the titlebar of my WM.

I think this is a bug in sway. Not sure,though.

colemickens commented 5 years ago

One could argue that Sway should clamp the title bars, but all the same, I saw a huge "😈" in my gomuks session today in Termite, partially obscuring the messages above and below it. Similarly, Chrome's build process includes emoji output which is comical when I catch it flying by. Other comments in other nixpkgs issues indicate other users have oversize emojis in some apps also.

I do think other application bugs come into play though. For example, this is what Firefox looks like, but I know this can be at least partially fixed by blocking Mozilla's built in emoji font with fontconfig, but I don't really understand why and was never able to get it completely working.

colemickens commented 5 years ago

(Ideally I'd like to figure this out and document it on the wiki or change the fontconfig defaults, or add an option for enabling emoji and activating the fontconfig, etc.)

zimbatm commented 5 years ago

I think this issue is more general than NixOS specifically. utf-8 multi-byte support is generally quite bad in terminals and other places.

Maybe start with a reproducible example and then make a list of apps that support utf-8 multi-byte properly.

The other dimension is what type of font to install to support all the fancy emoji code-points.

stale[bot] commented 4 years ago

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.
davidak commented 2 years ago

For me on Pantheon desktop, most emojis work. For testing in Browser: https://getemoji.com/

Screenshot from 2022-09-23 09-59-45

I also have the twemoji-color-font setup.

https://codeberg.org/davidak/nixos-config/src/commit/ffcaaa3b258e0cc65e5257f734b00f24e848923f/services/fonts/default.nix#L23

I'm not sure if that is still needed. It would be good if it works out of the box, for any desktop.