You are not logged in.
Pages: 1
Demnu seems to index every single font before loading for the first time after cold boot. My computer freezes for a few minutes while it indexes hundreds of fonts. Is there any way to prevent this?
Offline
Why is dmenu indexing your fonts?
Offline
No idea, it seems that it's searching in every single font file before showing at the top of the screen and locking all activity while it searches. Computer becomes unresponsive when invoking dmenu after suspend or after first boot.
Example strace:
munmap(0x7f915505d000, 59436) = 0
stat("/home/don/.local/share/fonts/Agatha-Regular.ttf", {st_mode=S_IFREG|0644, st_size=46668, ...}) = 0
open("/home/don/.local/share/fonts/Agatha-Regular.ttf", O_RDONLY) = 5
fcntl(5, F_SETFD, FD_CLOEXEC) = 0
fstat(5, {st_mode=S_IFREG|0644, st_size=46668, ...}) = 0
mmap(NULL, 46668, PROT_READ, MAP_PRIVATE, 5, 0) = 0x7f9155060000
close(5) = 0
munmap(0x7f9155060000, 46668) = 0
stat("/home/don/.local/share/fonts/AgincourtPlain-Regular.ttf", {st_mode=S_IFREG|0644, st_size=113528, ...}) = 0
open("/home/don/.local/share/fonts/AgincourtPlain-Regular.ttf", O_RDONLY) = 5
fcntl(5, F_SETFD, FD_CLOEXEC) = 0
fstat(5, {st_mode=S_IFREG|0644, st_size=113528, ...}) = 0
mmap(NULL, 113528, PROT_READ, MAP_PRIVATE, 5, 0) = 0x7f9155050000
close(5) = 0
munmap(0x7f9155050000, 113528) = 0
stat("/home/don/.local/share/fonts/Ahnberg-Regular.ttf", {st_mode=S_IFREG|0644, st_size=34368, ...}) = 0
open("/home/don/.local/share/fonts/Ahnberg-Regular.ttf", O_RDONLY) = 5
Goes on for thousands of lines like this.
Last edited by devoted (2016-09-24 07:23:08)
Offline
dmenu just reads your $PATH; to refine my first question, why are your fonts in your $PATH?
Offline
dmenu uses fontconfig and fontconfig scans available fonts when it starts up. However, it usually maintains a cache which drastically speeds up that process. That cache is stored in /var/cache/fontconfig and/or ~/.fontconfig (as far as I know), maybe also ~/.cache/fontconfig.
Running "fc-cache -v" (as your user) or "fc-cache -f" (as root) might help.
Offline
Pages: 1