summaryrefslogtreecommitdiff
path: root/ui.c
diff options
context:
space:
mode:
authorkatalx2026-01-30 21:22:48 -0500
committerkatalx2026-01-30 21:22:48 -0500
commit224fafc7c366682595c9c069c475d4e8228f70a6 (patch)
tree77e29f27c61be9fc2217d11001b18f045f67de29 /ui.c
parent3aad8914393c44412d44be1fd4e6e2a4fd49b8be (diff)
whops
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/ui.c b/ui.c
index 992fe92..f3e3eb8 100644
--- a/ui.c
+++ b/ui.c
@@ -58,8 +58,13 @@ ft_load(const char *name)
char *def_str;
XFontSet fs = XCreateFontSet(dsp, name,
&missing_charset_name, &missing_charset_count, &def_str);
- for (int i = 0; i < missing_charset_count; i++) {
- fprintf(stderr, "%s: No font found\n", missing_charset_name[i]);
+ if (missing_charset_count > 0) {
+ fputs("[Missing fonts: ", stderr);
+ for (int i = 0; i < missing_charset_count; i++) {
+ if (i > 0) fputs(", ", stderr);
+ fputs(missing_charset_name[i], stderr);
+ }
+ fputs("]\n", stderr);
}
XFreeStringList(missing_charset_name);
return fs;