On 2025-05-26 16:03, Giovanni Biscuolo wrote:
Hello,
Sorry for the very long message and all the attached images but I hope
to be complete and clear in describing this issue.
I'm experiencing a strange behaviour with UTF-8 symbols in all Guix
System installed apps I'm testing that I do not experience with the same
apps installed on Debian (via guix as a package manager).
I'm going to talk about DejaVu fonts but AFAIU this issue is for all
fonts.
Before going on, I have run "fc-cache -rv" several times both on my
Debian and Guix System machines
(https://guix.gnu.org/manual/en/html_node/Application-Setup.html#X11-Fonts)
On my Debian system this is the list of all DejaVu Sans Mono installed
fonts:
--8<---------------cut here---------------start------------->8---
giovanni@roquette:~$ fc-list | grep DejaVuSansMono
/home/giovanni/.guix-profile/share/fonts/truetype/DejaVuSansMono.ttf: DejaVu
Sans Mono:style=Book
/home/giovanni/.guix-profile/share/fonts/truetype/DejaVuSansMono-Oblique.ttf:
DejaVu Sans Mono:style=Oblique
/gnu/store/mjg1gq1w6csggjhy5wh6njyzqpic4avq-font-dejavu-2.37/share/fonts/truetype/DejaVuSansMono-Oblique.ttf:
DejaVu Sans Mono:style=Oblique
/home/giovanni/.guix-profile/share/fonts/truetype/DejaVuSansMono-Bold.ttf:
DejaVu Sans Mono:style=Bold
/home/giovanni/.guix-profile/share/fonts/truetype/DejaVuSansMono-BoldOblique.ttf:
DejaVu Sans Mono:style=Bold Oblique
/gnu/store/mjg1gq1w6csggjhy5wh6njyzqpic4avq-font-dejavu-2.37/share/fonts/truetype/DejaVuSansMono-BoldOblique.ttf:
DejaVu Sans Mono:style=Bold Oblique
/gnu/store/mjg1gq1w6csggjhy5wh6njyzqpic4avq-font-dejavu-2.37/share/fonts/truetype/DejaVuSansMono.ttf:
DejaVu Sans Mono:style=Book
/gnu/store/mjg1gq1w6csggjhy5wh6njyzqpic4avq-font-dejavu-2.37/share/fonts/truetype/DejaVuSansMono-Bold.ttf:
DejaVu Sans Mono:style=Bold
--8<---------------cut here---------------end--------------->8---
AFAIU the only DejaVuSansMono I've installed on my Debian system is the
one packaged in guix (no native Debian font)
This is the same list on my Guix System:
--8<---------------cut here---------------start------------->8---
g@pioche ~$ fc-list | grep DejaVuSansMono
/run/current-system/profile/share/fonts/truetype/DejaVuSansMono.ttf: DejaVu
Sans Mono:style=Book
/gnu/store/mjg1gq1w6csggjhy5wh6njyzqpic4avq-font-dejavu-2.37/share/fonts/truetype/DejaVuSansMono-Oblique.ttf:
DejaVu Sans Mono:style=Oblique
/run/current-system/profile/share/fonts/truetype/DejaVuSansMono-Bold.ttf:
DejaVu Sans Mono:style=Bold
/home/g/.guix-profile/share/fonts/truetype/DejaVuSansMono.ttf: DejaVu Sans
Mono:style=Book
/run/current-system/profile/share/fonts/truetype/DejaVuSansMono-Oblique.ttf:
DejaVu Sans Mono:style=Oblique
/home/g/.guix-profile/share/fonts/truetype/DejaVuSansMono-Oblique.ttf: DejaVu
Sans Mono:style=Oblique
/run/current-system/profile/share/fonts/truetype/DejaVuSansMono-BoldOblique.ttf:
DejaVu Sans Mono:style=Bold Oblique
/gnu/store/mjg1gq1w6csggjhy5wh6njyzqpic4avq-font-dejavu-2.37/share/fonts/truetype/DejaVuSansMono-BoldOblique.ttf:
DejaVu Sans Mono:style=Bold Oblique
/gnu/store/mjg1gq1w6csggjhy5wh6njyzqpic4avq-font-dejavu-2.37/share/fonts/truetype/DejaVuSansMono.ttf:
DejaVu Sans Mono:style=Book
/home/g/.guix-profile/share/fonts/truetype/DejaVuSansMono-BoldOblique.ttf:
DejaVu Sans Mono:style=Bold Oblique
/home/g/.guix-profile/share/fonts/truetype/DejaVuSansMono-Bold.ttf: DejaVu Sans
Mono:style=Bold
/gnu/store/mjg1gq1w6csggjhy5wh6njyzqpic4avq-font-dejavu-2.37/share/fonts/truetype/DejaVuSansMono-Bold.ttf:
DejaVu Sans Mono:style=Bold
--8<---------------cut here---------------end--------------->8---
I use i3 as my default window manager and i3status as my status bar, I
configured i3status to use Dejavu Sans Mono as its font:
--8<---------------cut here---------------start------------->8---
bar {
status_command i3status --config ~/.config/i3/i3status.conf
font pango:DejaVu Sans Mono 9
}
--8<---------------cut here---------------end--------------->8---
this is my i3status.conf:
On my Debian system I see the i3status bar display all the symbols
correctly, but on my Guix System session (configured the same way) I get
this:
* With (ungoogled-)chromium:
If I open this page https://unicodeplus.com/U+1F50B on my Debian system,
I can correcply see the battery symbol:
But on Guix System I see this:
* With Libreoffice
This is what I see on my Debian system:
And this on my Guix System:
* With pluma (Dejavu Mono is the configured font)
On Debian:
On Guix System:
Please do I miss something?
Thanks, Gio'
I'm going to answer with something probably very stupid but are you sure
the font that is displaying the battery is DejaVu?
I think they are falling back to some font that actually has the symbol.
For example: Noto.
I have your very same symbol in the i3 bar and I think it comes from the
Noto font.
I had some missing gliphs in the past but since I installed it they
worked. Also Unifont has all of them, but it's kind of a weird font (I
like it a lot).
Cheers!