NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.97k stars 13.98k forks source link

google-fonts breaks emoji on swaywm #225541

Open muni-corn opened 1 year ago

muni-corn commented 1 year ago

Describe the bug

This appears to be a regression introduced by c3f650c367b6a1311164e61f9fb5a355f0be63ca.

Installing google-fonts, whether alongside noto-color-emoji or not, will cause emoji to not display on my swaywm setup.

Steps To Reproduce

Steps to reproduce the behavior:

  1. add google-fonts to system packages
  2. within swaywm (i haven't tested this with other WMs or DEs), run an application such as bemenu that should display emoji. i've also observed this behavior with dunst and Discord.

try again with noto-color-emoji and remove google-fonts and the emoji should display as expected.

Expected behavior

I expect emoji to appear in bemenu and in other applications on swaywm, even with google-fonts installed. ideally, it would be nice to just install google-fonts and have emoji work (i believe Noto Color Emoji is included in the Google Fonts collection?), but for now, i can only install noto-color-emoji and not google-fonts if i want emoji to work.

Screenshots

This is what I'm seeing with google-fonts installed. There should be emoji to the left of each entry here.

20230313-213751

Additional context

Original Reddit post

Here are my configuration files

Notify maintainers

@manveru @laalsaas @SuperSandro2000

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.20, NixOS, 23.05 (Stoat), 23.05.20230318.1603d11`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.10.3`
 - channels(muni): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
SuperSandro2000 commented 1 year ago

Do you have anti aliasing on in your fontconfig especially for emojis? Try turning it off if so.

muni-corn commented 1 year ago

Do you have anti aliasing on in your fontconfig especially for emojis? Try turning it off if so.

Tried turning it off and it didn't fix the issue >.<

jficz commented 1 year ago

Same situation here. Using different target font(s) than OP but the symptoms are the same: adding google-fonts to fonts.packages "removes" emojis from, in my case, mainly kitty and foot terminals and waybar modules on Hyprland (so still wlroots but not Sway exclusively). Removing google-fonts is enough to fix the problem.

jficz commented 1 year ago

Since I (presently) only need the Open Sans font from the google fonts package, I replaced google-fonts with open-sans as a workaround.

khaneliman commented 11 months ago

Glad I found this thread... was trying to figure out why my emojis stopped working. Been broken for a long time and just recently was digging into it. Removing google-fonts resolved it for me, as well.