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

No icons #8

Open
eleloi opened this issue Feb 5, 2022 · 6 comments
Open

No icons #8

eleloi opened this issue Feb 5, 2022 · 6 comments

Comments

@eleloi
Copy link

eleloi commented Feb 5, 2022

I'm in wayland, I launch rofi-power-menu as:

rofi -show power-menu -modi power-menu:rofi-power-menu -font "JetBrainsMono NF 16" --symbols

but it don't display icons, insted I got \u200e\uF011
I have tested with other fonts whithout sucess. What I'm doing wrong?

@sapkotajeevan
Copy link

I'm in wayland, I launch rofi-power-menu as:

rofi -show power-menu -modi power-menu:rofi-power-menu -font "JetBrainsMono NF 16" --symbols

but it don't display icons, insted I got \u200e\uF011 I have tested with other fonts whithout sucess. What I'm doing wrong?

Same Issue Here. Trying to find a resolution. I am thinking of adding a Glyph instead of unicodes.

@ohxxm
Copy link

ohxxm commented Apr 26, 2022

Make sure the font is correct, by checking with fc-list. I had this issue but I had to restart, which fixed this.

@ohxxm
Copy link

ohxxm commented May 4, 2022

If fixed, please close.

@eleloi
Copy link
Author

eleloi commented May 8, 2022

fc-list|grep JetBrainsMono returns

/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Bold Nerd Font Complete.ttf: JetBrainsMono Nerd Font:style=Bold
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Extra Bold Nerd Font Complete.ttf: JetBrainsMono Nerd Font:style=Extra Bold,Regular
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono ExtraBold ExtBd Nerd Font Complete.ttf: JetBrainsMonoExtraBold Nerd Font:style=Extra Bold,Regular
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono ExtraBold ExBd I Nerd Font Complete Mono.ttf: JetBrainsMonoExtraBold Nerd Font Mono:style=Extra Bold Italic,Italic
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Italic Nerd Font Complete.ttf: JetBrainsMono Nerd Font:style=Italic
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Bold Italic Nerd Font Complete.ttf: JetBrainsMono Nerd Font:style=Bold Italic
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono ExtBd Ita Nerd Font Complete Mono.ttf: JetBrainsMono Nerd Font Mono:style=Extra Bold Italic,Italic
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Italic Nerd Font Complete Mono.ttf: JetBrainsMono Nerd Font Mono:style=Italic
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Bold Nerd Font Complete Mono.ttf: JetBrainsMono Nerd Font Mono:style=Bold
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono ExtraBold ExtBd Nerd Font Complete Mono.ttf: JetBrainsMonoExtraBold Nerd Font Mono:style=Extra Bold,Regular
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Bold Italic Nerd Font Complete Mono.ttf: JetBrainsMono Nerd Font Mono:style=Bold Italic
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Medium Nerd Font Complete.ttf: JetBrainsMono Nerd Font:style=Medium,Regular
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono ExtBd Ita Nerd Font Complete.ttf: JetBrainsMono Nerd Font:style=Extra Bold Italic,Italic
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Medium Medium Nerd Font Complete.ttf: JetBrainsMonoMedium Nerd Font:style=Medium,Regular
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Regular Nerd Font Complete.ttf: JetBrainsMono Nerd Font:style=Regular
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Medium Med Ita Nerd Font Complete Mono.ttf: JetBrainsMonoMedium Nerd Font Mono:style=Medium Italic,Italic
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Medium Italic Nerd Font Complete.ttf: JetBrainsMono Nerd Font:style=Medium Italic,Italic
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Medium Med Ita Nerd Font Complete.ttf: JetBrainsMonoMedium Nerd Font:style=Medium Italic,Italic
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Medium Medium Nerd Font Complete Mono.ttf: JetBrainsMonoMedium Nerd Font Mono:style=Medium,Regular
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Medium Italic Nerd Font Complete Mono.ttf: JetBrainsMono Nerd Font Mono:style=Medium Italic,Italic
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono ExtraBold ExBd I Nerd Font Complete.ttf: JetBrainsMonoExtraBold Nerd Font:style=Extra Bold Italic,Italic
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Regular Nerd Font Complete Mono.ttf: JetBrainsMono Nerd Font Mono:style=Regular
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Extra Bold Nerd Font Complete Mono.ttf: JetBrainsMono Nerd Font Mono:style=Extra Bold,Regular
/usr/share/fonts/nerd-fonts-complete/TTF/JetBrains Mono Medium Nerd Font Complete Mono.ttf: JetBrainsMono Nerd Font Mono:style=Medium,Regular

I test the same command with another fonts, and also changing JetBrainsMono NF with JetBrainsMono Nerd Font but same result

@ohxxm
Copy link

ohxxm commented Aug 8, 2022

Rofi is not supported in wayland, there is a fork named wofi for this which is not supported by this script.

@Chaostheorie
Copy link

Just a small update in case anyone else has the same problem:
In case you lack an icon font consider the patched Nerd Fonts.

In rofi font families need to be adjusted via CSS for the appropiate element (e.g., the top level window) to fix the issue of missing glyps, e.g.:

window {
  font-family: JetBrainsMono, JetBrainsMonoNerdFontMono, monospace; 
}

The CSS file with this rule should be referenced with @theme "<path to CSS file>" in the config.rasi for rofi.

Note: To find the name of a font family on Linux: fc-list | grep -i <name>. To check if a name, e.g., JetBrainsMonoNerdFontMono is matched properly, use fc-match <name>. You can '...' use single quotes for escaping whitespace.

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

4 participants