Closed Yeshey closed 3 months ago
Could not reproduce by notify-send -u critical '😄'
. It prompts with emoji rendered (though in monochrome). Is emoji in other programs rendered as tofu (boxes as in your screenshot) for you, or is it just in notifications?
Install plasma 6, in my case:
I don't see any font installed in your code fragment. I don't think any fonts including emojis are installed by default since they are usually quite big in size.
Eg. To install Noto Fonts Color Emoji font, add fonts.packages = [ pkgs.noto-fonts-color-emoji ];
in your NixOS configuration.
Could not reproduce by
notify-send -u critical '😄'
. It prompts with emoji rendered (though in monochrome). Is emoji in other programs rendered as tofu (boxes as in your screenshot) for you, or is it just in notifications?Install plasma 6, in my case:
I don't see any font installed in your code fragment. I don't think any fonts including emojis are installed by default since they are usually quite big in size.
Eg. To install Noto Fonts Color Emoji font, add
fonts.packages = [ pkgs.noto-fonts-color-emoji ];
in your NixOS configuration.
yeah, some emojis do show, that one does in monochrome can you try display 👋 or 👋🏽?
I believe I have the fonts installed, I did try to mess around with the fonts before making the issue, I'll try your font package suggestion and report back
The only other place where I notice the problem and the workaround took effect was the WIN + V
window with the clipboard history, everything else, the emoji picker, fonts in the terminal etc. is working, so i believeit's a plasma specific issue
can you try display 👋 or 👋🏽?
It's also working.
That explains why it's monochrome instead of colorful ones. But it seems your issue is that they do not render at all, which seems to be a font selection issue.
Could you try also explicitly specifying a default emoji font by fontconfig.defaultFonts.emoji = [ "Noto Color Emoji" ];
?
can you try display 👋 or 👋🏽?
It's also working.
That explains why it's monochrome instead of colorful ones. But it seems your issue is that they do not render at all, which seems to be a font selection issue.
Could you try also explicitly specifying a default emoji font by
fontconfig.defaultFonts.emoji = [ "Noto Color Emoji" ];
?
oh ok, it's a problem with my config, I should have guessed 😆 Immediately disabling my fonts configuration doesn't seem to get rid of the problem. I'll try to remove parts of my configuration and pin down the problem and report back
adding fonts,fontconfig.defaultFonts.emoji = [ "Noto Color Emoji" ];
didnt help
environment.systemPackages = with pkgs; [
noto-fonts-color-emoji
];
fonts.packages = with pkgs; [
noto-fonts-color-emoji
];
fonts.fontconfig.defaultFonts.emoji = [ "Noto Color Emoji" ];
thank you @oxalica, it's a problem with stylix. I'll make an issue over there, thanks a lot for everything 👍
I had the same problem since upgrading to 24.05, and it seems the underlying issue for me was that there was no emoji fallback font in fontconfig.defaultFonts.sansSerif
etc.
With settings like this it works now (similar for .serif
and .monospace
):
fontconfig.defaultFonts.sansSerif = [
"Noto Sans"
"Noto Color Emoji"
"Noto Color Emoji"
];
Describe the bug
It's not all emojis that are missing, it's the equivalent of this issue in stack exchange.
Steps To Reproduce
Install plasma 6, in my case:
If needed, here is my config.
Expected behavior
Workaround
Following this thread, as a workaround we can use the file Kubuntu uses, putting the file
56-kubuntu-noto.conf
attached below in~/.config/fontconfig/conf.d/
. FILE ATTACHED: 56-kubuntu-noto.txt, change the name to56-kubuntu-noto.conf
.Or use this home manager configuration:
Additional context
I don't know if nixOS is interested in delivering a custom desktop environment experience or just the default experience, if not, maybe a option could be provided? In either case having this issue might help someone that has a similar problem.
Notify maintainers
@K900 @oxalica @SuperSandro2000
Metadata
Add a :+1: reaction to issues you find important.