regolith-desktop icon indicating copy to clipboard operation
regolith-desktop copied to clipboard

multiple glyphs missing in regolith-look-nord (regolith 2.0)

Open ploum opened this issue 3 years ago • 12 comments

I guess that some fonts packages are missing regolith_nord regolith_nord2

ploum avatar Apr 03 '22 20:04 ploum

Is probably a duplicate of #629

ploum avatar Apr 03 '22 22:04 ploum

Hmm, I am not seeing this in my instance of Regolith 2 using nord:

image

Perhaps you have some Xresources being loaded from Regolith 1.x? (You can run xrdb -query to see all Xresource keys that are set)

kgilmer avatar Apr 03 '22 23:04 kgilmer

I can confirm that there’s definitely a problem with look-default and look-nord. Using my own custom theme has no problem.

ploum avatar Apr 04 '22 12:04 ploum

Hmm, do you have these fonts installed?

$ apt list --installed | grep fonts-nerd

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

fonts-nerd-font-jetbrainsmono/unknown,now 2.1.0-2-1regolith all [installed]
fonts-nerd-font-sourcecodepro/unknown,now 2.1.0-2-1regolith all [installed]

kgilmer avatar Apr 07 '22 04:04 kgilmer

yes

% apt list --installed|grep fonts-nerd

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

fonts-nerd-font-jetbrainsmono/inconnu,now 2.1.0-2-1regolith all [installé, automatique] fonts-nerd-font-sourcecodepro/inconnu,now 2.1.0-2-1regolith all [installé]

ploum avatar Apr 07 '22 07:04 ploum

The "nord" theme seems to use SauceCodePro, which I don’t have on my system and I don’t find in Debian.

ploum avatar Apr 07 '22 09:04 ploum

Not sure why they changed the name of the font as installed on the system but the dependent package is declared in the package and it's working for me. You also have the correct package as listed up above. What does this say on your machine?

$ xrescat i3-wm.bar.font
pango:SauceCodePro Nerd Font Mono 13

kgilmer avatar Apr 09 '22 22:04 kgilmer

% regolith-look set nord In file included from /home/ploum/.cache/regolith2/Xresources-generated:5: /usr/share/regolith-look/nord/typeface:32:34: warning: \U0000fa7f' is not in NFC [-Wnormalized=] 32 | #define typeface_bar_glyph_sound 奔 | ^ /usr/share/regolith-look/nord/typeface:36:33: warning: \U0000faa8' is not in NFC [-Wnormalized=] 36 | #define typeface_bar_glyph_wifi 直 |

Yes, packages installed and xrescat correctl.

ploum avatar Apr 09 '22 23:04 ploum

image

ploum avatar Apr 09 '22 23:04 ploum

I confirm that both are fixed. It seems that the "thermometer/temperature" icon is still broken

ploum avatar Apr 10 '22 08:04 ploum

I think I found a solution in the regolith 3 era:

it turns out wm.bar.font is not set in some looks. I have to add it in my own Xresources and all the weird symbol/character issue go away

wm.bar.font: RobotoMono Nerd Font Regular 11

However, the font choice must match that of the look itself (defined in gtk.font_name e.g.)!. You can't just customize the font or the glyphs will go bonkers

@kgilmer Should raise a simple PR in the regolith-looks repo?

linxichen avatar Jul 12 '24 18:07 linxichen

Hi @linxichen ,

Hmm, so for Nord, the font is set here, and then used to load the Xresources key here. You're saying this isn't working for you? If you're able to check, if you revert your fix, does wm.bar.font have any value set on a fresh session?

kgilmer avatar Jul 13 '24 23:07 kgilmer